diff options
author | itojun <itojun> | 2000-10-03 02:54:54 +0000 |
---|---|---|
committer | itojun <itojun> | 2000-10-03 02:54:54 +0000 |
commit | fb75d3cd5ad603bd255d9cdc20aeca674c6f3720 (patch) | |
tree | f7216518bb3fe268e2512bce0b8d68448d0aa976 /print-sunrpc.c | |
parent | cdaba7de64aab0672383804b7c80cc3678936b4f (diff) | |
download | tcpdump-fb75d3cd5ad603bd255d9cdc20aeca674c6f3720.tar.gz |
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
Diffstat (limited to 'print-sunrpc.c')
-rw-r--r-- | print-sunrpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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", |