]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rt6.c
Make nd_uint8_t and nd_int8_t arrays, to catch direct references.
[tcpdump] / print-rt6.c
index 0ba3ba6616e381e31afe934cf7e247dc2d24ca28..31da35ea972033c097050b05b22ab4987f8b9b06 100644 (file)
@@ -64,7 +64,7 @@ rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2
                ND_TCHECK(dp0->ip6r0_reserved);
                if (EXTRACT_BE_U_4(dp0->ip6r0_reserved) || ndo->ndo_vflag) {
                        ND_PRINT((ndo, ", rsv=0x%0x",
-                           EXTRACT_BE_U_4(&dp0->ip6r0_reserved)));
+                           EXTRACT_BE_U_4(dp0->ip6r0_reserved)));
                }
 
                if (len % 2 == 1)
@@ -80,7 +80,7 @@ rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2
                }
                /*(*/
                ND_PRINT((ndo, ") "));
-               return((dp0->ip6r0_len + 1) << 3);
+               return((EXTRACT_U_1(dp0->ip6r0_len) + 1) << 3);
                break;
        default:
                goto trunc;