X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3c4d7c0ee30a30e5abff3d6d9586a3753101faf5..d7b497cac78b6e22a66a6bae9bdec60a8044f67a:/print-rt6.c?ds=sidebyside diff --git a/print-rt6.c b/print-rt6.c index 0395791d..0ba3ba66 100644 --- a/print-rt6.c +++ b/print-rt6.c @@ -29,12 +29,12 @@ #include -#include "ip6.h" - #include "netdissect.h" #include "addrtoname.h" #include "extract.h" +#include "ip6.h" + int rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2 _U_) { @@ -62,9 +62,9 @@ rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2 dp0 = (const struct ip6_rthdr0 *)dp; ND_TCHECK(dp0->ip6r0_reserved); - if (dp0->ip6r0_reserved || ndo->ndo_vflag) { + if (EXTRACT_BE_U_4(dp0->ip6r0_reserved) || ndo->ndo_vflag) { ND_PRINT((ndo, ", rsv=0x%0x", - EXTRACT_32BITS(&dp0->ip6r0_reserved))); + EXTRACT_BE_U_4(&dp0->ip6r0_reserved))); } if (len % 2 == 1)