diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2003-02-11 12:21:33 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2003-02-11 12:21:33 +0000 |
commit | 10d593da65f9d2b5de099e14d85e4999cb3267f4 (patch) | |
tree | 038e58f3d35bfd7923a8345bf3d4306ce1c0bf9f | |
parent | a645f6d6a6003686925c0d67baa4a64e92cdda24 (diff) |
Show DF on IP fragments
ok henric@
-rw-r--r-- | usr.sbin/tcpdump/print-ip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-ip.c b/usr.sbin/tcpdump/print-ip.c index f7a31d325ea..587e9e460a0 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.17 2002/09/18 08:51:17 jakob Exp $ */ +/* $OpenBSD: print-ip.c,v 1.18 2003/02/11 12:21:32 cedric 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.17 2002/09/18 08:51:17 jakob Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ip.c,v 1.18 2003/02/11 12:21:32 cedric Exp $ (LBL)"; #endif #include <sys/param.h> @@ -573,7 +573,8 @@ ip_print(register const u_char *bp, register u_int length) (void)printf(" (frag %d:%d@%d%s)", ntohs(ip->ip_id), len, (off & 0x1fff) * 8, (off & IP_MF)? "+" : ""); - } else if (off & IP_DF) + } + if (off & IP_DF) (void)printf(" (DF)"); if (ip->ip_tos) { |