=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/Attic/ipx.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/netstat/Attic/ipx.c 2002/06/09 04:07:10 1.12 --- src/usr.bin/netstat/Attic/ipx.c 2003/02/01 01:51:31 1.13 *************** *** 1,4 **** ! /* $OpenBSD: ipx.c,v 1.12 2002/06/09 04:07:10 jsyn Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff --- 1,4 ---- ! /* $OpenBSD: ipx.c,v 1.13 2003/02/01 01:51:31 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff *************** *** 38,44 **** #if 0 static char sccsid[] = "from: @(#)ns.c 8.1 (Berkeley) 6/6/93"; #else ! static char *rcsid = "$OpenBSD: ipx.c,v 1.12 2002/06/09 04:07:10 jsyn Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "from: @(#)ns.c 8.1 (Berkeley) 6/6/93"; #else ! static char *rcsid = "$OpenBSD: ipx.c,v 1.13 2003/02/01 01:51:31 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 78,84 **** --- 78,86 ---- struct socket sockb; static char *ipx_prpr(struct ipx_addr *); + #ifdef IPXERRORMSGS static void ipx_erputil(int, int); + #endif static int first = 1; *************** *** 90,98 **** */ void ! ipxprotopr(off, name) ! u_long off; ! char *name; { struct ipxpcbtable table; struct ipxpcb *head, *prev, *next; --- 92,98 ---- */ void ! ipxprotopr(u_long off, char *name) { struct ipxpcbtable table; struct ipxpcb *head, *prev, *next; *************** *** 164,172 **** * Dump SPX statistics structure. */ void ! spx_stats(off, name) ! u_long off; ! char *name; { struct spx_istat spx_istat; #define spxstat spx_istat.newstats --- 164,170 ---- * Dump SPX statistics structure. */ void ! spx_stats(u_long off, char *name) { struct spx_istat spx_istat; #define spxstat spx_istat.newstats *************** *** 242,250 **** * Dump IPX statistics structure. */ void ! ipx_stats(off, name) ! u_long off; ! char *name; { struct ipxstat ipxstat; --- 240,246 ---- * Dump IPX statistics structure. */ void ! ipx_stats(u_long off, char *name) { struct ipxstat ipxstat; *************** *** 263,277 **** char *name; char *where; } ipx_errnames[] = { ! {0, "Unspecified Error", " at Destination"}, ! {1, "Bad Checksum", " at Destination"}, ! {2, "No Listener", " at Socket"}, ! {3, "Packet", " Refused due to lack of space at Destination"}, ! {01000, "Unspecified Error", " while gatewayed"}, ! {01001, "Bad Checksum", " while gatewayed"}, ! {01002, "Packet", " forwarded too many times"}, ! {01003, "Packet", " too large to be forwarded"}, ! {-1, 0, 0}, }; /* --- 259,273 ---- char *name; char *where; } ipx_errnames[] = { ! { 0, "Unspecified Error", " at Destination" }, ! { 1, "Bad Checksum", " at Destination" }, ! { 2, "No Listener", " at Socket" }, ! { 3, "Packet", " Refused due to lack of space at Destination" }, ! { 01000, "Unspecified Error", " while gatewayed" }, ! { 01001, "Bad Checksum", " while gatewayed" }, ! { 01002, "Packet", " forwarded too many times" }, ! { 01003, "Packet", " too large to be forwarded" }, ! { -1, 0, 0 }, }; /* *************** *** 279,287 **** */ /*ARGSUSED*/ void ! ipxerr_stats(off, name) ! u_long off; ! char *name; { struct ipx_errstat ipx_errstat; int j; --- 275,281 ---- */ /*ARGSUSED*/ void ! ipxerr_stats(u_long off, char *name) { struct ipx_errstat ipx_errstat; int j; *************** *** 322,329 **** } static void ! ipx_erputil(z, c) ! int z, c; { int j; char codebuf[30]; --- 316,322 ---- } static void ! ipx_erputil(int z, int c) { int j; char codebuf[30]; *************** *** 349,359 **** } #endif /* IPXERRORMSGS */ ! static struct sockaddr_ipx ssipx = {AF_IPX}; static char * ! ipx_prpr(x) ! struct ipx_addr *x; { struct sockaddr_ipx *sipx = &ssipx; --- 342,351 ---- } #endif /* IPXERRORMSGS */ ! static struct sockaddr_ipx ssipx = { AF_IPX }; static char * ! ipx_prpr(struct ipx_addr *x) { struct sockaddr_ipx *sipx = &ssipx;