summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-10-04 22:47:11 +0000
committerwollman <wollman@FreeBSD.org>1994-10-04 22:47:11 +0000
commit4e401ed313f2b2b269f99b835a7c9b7a8e42d703 (patch)
treeb005ebafd4abf2935b583b41e6bdf3ab0fec55c7 /usr.sbin/tcpdump
parentbfc217688d97be157834a82e81f98ffccd1ffa5c (diff)
downloadFreeBSD-src-4e401ed313f2b2b269f99b835a7c9b7a8e42d703.zip
FreeBSD-src-4e401ed313f2b2b269f99b835a7c9b7a8e42d703.tar.gz
Correctly interpret the code field of IGMP membership queries.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/tcpdump/print-ip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/tcpdump/print-ip.c b/usr.sbin/tcpdump/tcpdump/print-ip.c
index 85c2ad9..a67b29a 100644
--- a/usr.sbin/tcpdump/tcpdump/print-ip.c
+++ b/usr.sbin/tcpdump/tcpdump/print-ip.c
@@ -21,7 +21,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $Header: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/print-ip.c,v 1.1.1.1 1993/06/12 14:42:08 rgrimes Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/print-ip.c,v 1.2 1994/09/08 02:29:12 wollman Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -61,11 +61,12 @@ igmp_print(cp, len, ip)
switch (igmp->igmp_type) {
case IGMP_HOST_MEMBERSHIP_QUERY:
(void)printf("igmp query");
+ if (igmp->igmp_code)
+ printf(" max delay %d", igmp->igmp_code);
+
if (igmp->igmp_group.s_addr)
(void)printf(" [gaddr %s]",
ipaddr_string(&igmp->igmp_group));
- if (igmp->igmp_code)
- printf(" [code %d]", igmp->igmp_code);
if (len != IGMP_MINLEN)
(void)printf(" [len %d]", len);
break;
OpenPOWER on IntegriCloud