summaryrefslogtreecommitdiff
path: root/print-ip.c
diff options
context:
space:
mode:
authorfenner <fenner>2001-09-17 21:57:50 +0000
committerfenner <fenner>2001-09-17 21:57:50 +0000
commitc672f002763b3a4fc30ca229e57f50d3b2e6d766 (patch)
treeee681c42232037a77b9f4413202971bfd41bf0d9 /print-ip.c
parentd5c621ba52626b1cc9778850bf7997cc227d230d (diff)
downloadtcpdump-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-ip.c b/print-ip.c
index 8d1bbdad..da34def9 100644
--- a/print-ip.c
+++ b/print-ip.c
@@ -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: