aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcpdump/print-ipx.c
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1997-05-27 02:11:31 +0000
committerBill Fenner <fenner@FreeBSD.org>1997-05-27 02:11:31 +0000
commit4de76e31371f636d15e4005d6bed5755adb4c393 (patch)
treee094325bbde8f6c3c673d34a84cb20359f0f55fd /contrib/tcpdump/print-ipx.c
parent4edb46e9a85ca35d3bed523171d11a748861ce82 (diff)
downloadsrc-4de76e31371f636d15e4005d6bed5755adb4c393.tar.gz
src-4de76e31371f636d15e4005d6bed5755adb4c393.zip
Virgin import of LBL tcpdump v3.3
Notes
Notes: svn path=/vendor/tcpdump/dist/; revision=26180
Diffstat (limited to 'contrib/tcpdump/print-ipx.c')
-rw-r--r--contrib/tcpdump/print-ipx.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/tcpdump/print-ipx.c b/contrib/tcpdump/print-ipx.c
index 77666ca19ac3..ccd6b53abfd2 100644
--- a/contrib/tcpdump/print-ipx.c
+++ b/contrib/tcpdump/print-ipx.c
@@ -17,15 +17,14 @@
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-/*
+ *
* Format and print Novell IPX packets.
* Contributed by Brad Parker (brad@fcr.com).
*/
+
#ifndef lint
-static char rcsid[] =
- "@(#)$Header: print-ipx.c,v 1.16 96/07/23 14:17:24 leres Exp $";
+static const char rcsid[] =
+ "@(#) $Header: print-ipx.c,v 1.19 96/12/10 23:23:52 leres Exp $";
#endif
#include <sys/param.h>
@@ -145,7 +144,7 @@ ipx_sap_print(const u_short *ipx, u_int length)
if (length > 0) {
TCHECK(ipx[1]);
(void)printf(" %x '", EXTRACT_16BITS(&ipx[0]));
- fn_print((char *)&ipx[1], (char *)&ipx[1] + 48);
+ fn_print((u_char *)&ipx[1], (u_char *)&ipx[1] + 48);
putchar('\'');
}
break;
@@ -160,7 +159,7 @@ ipx_sap_print(const u_short *ipx, u_int length)
for (i = 0; i < 8 && length > 0; i++) {
TCHECK2(ipx[27], 1);
(void)printf(" %x '", EXTRACT_16BITS(&ipx[0]));
- fn_print((char *)&ipx[1], (char *)&ipx[1] + 48);
+ fn_print((u_char *)&ipx[1], (u_char *)&ipx[1] + 48);
printf("' addr %s",
ipxaddr_string(EXTRACT_32BITS(&ipx[25]), (u_char *)&ipx[27]));
ipx += 32;