diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-10-15 11:10:30 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-10-15 11:10:30 +0000 |
commit | 6975c0035bc71d4561184e799193d23f9915435d (patch) | |
tree | ccac61fe623256d1c36d651018839c2011295c03 | |
parent | 421f4fb6886c9b23aee71629f82d2a073dc12c38 (diff) |
print ip_len for -v; ok otto, hshoexer, henning
-rw-r--r-- | usr.sbin/tcpdump/print-ip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ip.c b/usr.sbin/tcpdump/print-ip.c index f241efc0a4a..a466ae7ef56 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.27 2004/08/10 19:55:35 markus Exp $ */ +/* $OpenBSD: print-ip.c,v 1.28 2004/10/15 11:10:29 markus 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.27 2004/08/10 19:55:35 markus Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ip.c,v 1.28 2004/10/15 11:10:29 markus Exp $ (LBL)"; #endif #include <sys/param.h> @@ -634,6 +634,8 @@ ip_print(register const u_char *bp, register u_int length) (void)printf("%sid %d", sep, (int)ntohs(ip->ip_id)); sep = ", "; } + (void)printf("%slen %u", sep, ntohs(ip->ip_len)); + sep = ", "; if ((u_char *)ip + hlen <= snapend) { sum = in_cksum((const u_short *)ip, hlen, 0); if (sum != 0) { |