From fb75d3cd5ad603bd255d9cdc20aeca674c6f3720 Mon Sep 17 00:00:00 2001 From: itojun Date: Tue, 3 Oct 2000 02:54:54 +0000 Subject: always use u_intXX_t for protocol format declaration. char/short/int may not come with exact size. while at it, correct signedness of ip/udp header field. nuke most of the use of bitfield. TODO: bitfield in namser.h --- print-sunrpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-sunrpc.c') diff --git a/print-sunrpc.c b/print-sunrpc.c index 3f6c68b2..998d88fd 100644 --- a/print-sunrpc.c +++ b/print-sunrpc.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.37 2000-09-29 04:58:50 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.38 2000-10-03 02:55:01 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -93,7 +93,7 @@ sunrpcrequest_print(register const u_char *bp, register u_int length, snprintf(dstid, sizeof(dstid), "0x%x", PMAPPORT); } - switch (((struct ip *)bp2)->ip_v) { + switch (IP_V((struct ip *)bp2)) { case 4: ip = (struct ip *)bp2; printf("%s.%s > %s.%s: %d", -- cgit v1.2.1