diff options
-rw-r--r-- | usr.sbin/tcpdump/print-ip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-ip.c b/usr.sbin/tcpdump/print-ip.c index 09f38d32353..5382e2729b6 100644 --- a/usr.sbin/tcpdump/print-ip.c +++ b/usr.sbin/tcpdump/print-ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ip.c,v 1.25 2004/04/28 02:17:03 mcbride Exp $ */ +/* $OpenBSD: print-ip.c,v 1.26 2004/05/08 01:01:35 mcbride Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ip.c,v 1.25 2004/04/28 02:17:03 mcbride Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ip.c,v 1.26 2004/05/08 01:01:35 mcbride Exp $ (LBL)"; #endif #include <sys/param.h> @@ -569,7 +569,9 @@ ip_print(register const u_char *bp, register u_int length) #define IPPROTO_PFSYNC 240 #endif case IPPROTO_PFSYNC: - pfsync_ip_print(cp, len, (const u_char *)ip); + pfsync_ip_print(cp, + (int)(snapend - (u_char *)ip) - hlen, + (const u_char *)ip); break; default: |