From aej@wpi.WPI.EDU Thu Jun 10 19:23:52 1993
Flags: 000000000001
Received: from bigboote.WPI.EDU (bigboote.WPI.EDU [130.215.24.2]) by lysator.liu.se (ALPHA-6.56/6.27) id TAA12906; Thu, 10 Jun 1993 19:23:49 +0200
Received: from alpha.WPI.EDU (aej@alpha.WPI.EDU [130.215.24.72]) by bigboote.WPI.EDU (6.66/6.31) id NAA13195; Thu, 10 Jun 1993 13:23:45 -0400
From: Allan E Johannesen <aej@wpi.WPI.EDU>
Received: from localhost by alpha.WPI.EDU (6.66/6.12) id NAA01147; Thu, 10 Jun 1993 13:23:44 -0400
Date: Thu, 10 Jun 1993 13:23:44 -0400
Message-Id: <199306101723.NAA01147@alpha.WPI.EDU>
To: alpha-osf-managers@ornl.gov
cc: pen@lysator.liu.se
Subject: Alpha OSF ident

The following are the context diffs to add support for DEC Alpha AXP OSF
(tested in version 1.3) to the ident package from ftp.lysator.liu.se

alpha:~> diff -c pidentd-2.1.1/Makefile~org pidentd-2.1.1/Makefile
*** pidentd-2.1.1/Makefile~org	Sun May 16 17:32:11 1993
--- pidentd-2.1.1/Makefile	Thu Jun 10 12:59:19 1993
***************
*** 48,53 ****
--- 48,54 ----
  	@echo "	aux3		Apple A/UX 3"
  	@echo "	ultrix3		Digital Ultrix 3"
  	@echo "	ultrix4		Digital Ultrix 4"
+ 	@echo "	AlphaOSF	Digital Alpha AXP OSF"
  	@echo "	unicos6		Cray UNICOS 6"
  	@echo "	convex		Convex ConvexOS"
  	@echo "	next		NeXT/Mach (NeXTSTEP 2 & 3)"
***************
*** 165,170 ****
--- 166,178 ----
  ultrix ultrix3 ultrix4:
  	@echo "Building for Digital Ultrix 3 or 4 ..."
  	@(cd src ; $(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" LIBS="$(GLIBS)" CFLAGS="$(CFLAGS) $(GDEFS)" MAKE=$(MAKE) KSRC=other in.identd)
+ 
+ #
+ # Alpha AXP OSF/1
+ #
+ AlphaOSF:
+ 	@echo "Building for Digital Alpha AXP OSF/1..."
+ 	@(cd src ; $(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" LIBS="$(GLIBS)" CFLAGS="-I/usr/sys/include -I/usr/sys/BINARY $(CFLAGS) $(GDEFS)" MAKE=$(MAKE) KSRC=other in.identd)
  
  #
  # Use this if Cray UNICOS 6.*
alpha:~> diff -c pidentd-2.1.1/src/kernel/other.c~org pidentd-2.1.1/src/kernel/other.c
*** pidentd-2.1.1/src/kernel/other.c~org	Sun Apr 25 04:30:47 1993
--- pidentd-2.1.1/src/kernel/other.c	Thu Jun 10 13:22:19 1993
***************
*** 46,53 ****
--- 46,63 ----
  #  define nfile SOME_OTHER_VARIABLE_NAME
  #endif
  
+ #ifdef __alpha
+ #define nfile not_what_you_think
+ #define _KERNEL
+ #endif
+ 
  #include <sys/file.h>
  
+ #ifdef __alpha
+ #undef nfile
+ #undef _KERNEL
+ #endif
+ 
  #ifdef SUNOS35
  #  undef nfile
  #endif
***************
*** 78,87 ****
--- 88,107 ----
  #include <net/route.h>
  #include <netinet/in.h>
  
+ #ifdef __alpha
+ #include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+ #endif
+ 
  #include <netinet/in_pcb.h>
  
  #include <netinet/tcp.h>
  #include <netinet/ip_var.h>
+ 
+ #ifdef __alpha
+ #include <netinet/tcpip.h>
+ #endif
+ 
  #include <netinet/tcp_timer.h>
  #include <netinet/tcp_var.h>
  
***************
*** 177,183 ****
  ** Returns 1 if call succeeded, else 0 (zero).
  */
  static int getbuf(addr, buf, len, what)
!   long addr;
    char *buf;
    int len;
    char *what;
--- 197,203 ----
  ** Returns 1 if call succeeded, else 0 (zero).
  */
  static int getbuf(addr, buf, len, what)
!   caddr_t addr;
    char *buf;
    int len;
    char *what;
***************
*** 224,230 ****
  	 pcbp->inp_lport        == lport )
        return pcbp->inp_socket;
    } while (pcbp->inp_next != head &&
! 	   getbuf((long) pcbp->inp_next,
  		  pcbp,
  		  sizeof(struct inpcb),
  		  "tcblist"));
--- 244,250 ----
  	 pcbp->inp_lport        == lport )
        return pcbp->inp_socket;
    } while (pcbp->inp_next != head &&
! 	   getbuf((caddr_t) pcbp->inp_next,
  		  pcbp,
  		  sizeof(struct inpcb),
  		  "tcblist"));
***************
*** 244,250 ****
    int lport;
    int *uid;
  {
!   long addr;
    struct socket *sockp;
    int i;
    struct ucred ucb;
--- 264,270 ----
    int lport;
    int *uid;
  {
!   caddr_t addr;
    struct socket *sockp;
    int i;
    struct ucred ucb;
alpha:~> 

