]> The Tcpdump Group git mirrors - tcpdump/commitdiff
"rr_maxdelay" is a 16-bit field, and "rr_reserved" is a 32-bit field, in
authorguy <guy>
Tue, 5 Feb 2008 19:36:13 +0000 (19:36 +0000)
committerguy <guy>
Tue, 5 Feb 2008 19:36:13 +0000 (19:36 +0000)
a router renumbering message; process them correctly.

print-icmp6.c

index 2ec05d43115e6a5c6d325587a080675c0838bb6e..2299801acb47bbe17078ad932bba50485ac97a61 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.85 2005-09-05 09:29:01 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.86 2008-02-05 19:36:13 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1192,9 +1192,9 @@ icmp6_rrenum_print(const u_char *bp, const u_char *ep)
                            F(ICMP6_RR_FLAGS_PREVDONE, "P"));
                }
                printf("seg=%u,", rr6->rr_segnum);
-               printf("maxdelay=%u", rr6->rr_maxdelay);
+               printf("maxdelay=%u", EXTRACT_16BITS(&rr6->rr_maxdelay));
                if (rr6->rr_reserved)
-                       printf("rsvd=0x%x", EXTRACT_16BITS(&rr6->rr_reserved));
+                       printf("rsvd=0x%x", EXTRACT_32BITS(&rr6->rr_reserved));
                /*[*/
                printf("]");
 #undef F