diff options
author | fenner <fenner> | 2001-09-17 21:57:50 +0000 |
---|---|---|
committer | fenner <fenner> | 2001-09-17 21:57:50 +0000 |
commit | c672f002763b3a4fc30ca229e57f50d3b2e6d766 (patch) | |
tree | ee681c42232037a77b9f4413202971bfd41bf0d9 /print-ip.c | |
parent | d5c621ba52626b1cc9778850bf7997cc227d230d (diff) | |
download | tcpdump-c672f002763b3a4fc30ca229e57f50d3b2e6d766.tar.gz |
Eliminate some unused parameters.
Use const more.
Use EXTRACT_* macros more.
Use TCHECK* more.
Use tok2str() to replace some home-grown workalikes.
smb:
- Get rid of private types, use tcpdump-defined types
- Rename fdata and fdata1 to smb_fdata and smb_fdata1 to avoid conflict
with IRIX library function.
Diffstat (limited to 'print-ip.c')
-rw-r--r-- | print-ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.99 2001-08-20 17:52:39 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.100 2001-09-17 21:58:03 fenner Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -217,7 +217,7 @@ ip_optprint(register const u_char *cp, u_int length) * don't modifiy the packet. */ u_short -in_cksum(const u_short *addr, register int len, int csum) +in_cksum(const u_short *addr, register u_int len, int csum) { int nleft = len; const u_short *w = addr; @@ -408,7 +408,7 @@ again: #define IPPROTO_IGMP 2 #endif case IPPROTO_IGMP: - igmp_print(cp, len, (const u_char *)ip); + igmp_print(cp, len); break; case 4: |