]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ripng.c
Fix mkdep invocations.
[tcpdump] / print-ripng.c
index 7113239ad549056a11a9670ee992d4e9f8604092..1939893189643b3511df3076987e12b74f4f3e3e 100644 (file)
@@ -99,7 +99,7 @@ rip6_entry_print(netdissect_options *ndo, register const struct netinfo6 *ni, in
        int l;
        l = ND_PRINT((ndo, "%s/%d", ip6addr_string(ndo, &ni->rip6_dest), ni->rip6_plen));
        if (ni->rip6_tag)
        int l;
        l = ND_PRINT((ndo, "%s/%d", ip6addr_string(ndo, &ni->rip6_dest), ni->rip6_plen));
        if (ni->rip6_tag)
-               l += ND_PRINT((ndo, " [%d]", EXTRACT_16BITS(&ni->rip6_tag)));
+               l += ND_PRINT((ndo, " [%d]", EXTRACT_BE_U_2(&ni->rip6_tag)));
        if (metric)
                l += ND_PRINT((ndo, " (%d)", ni->rip6_metric));
        return l;
        if (metric)
                l += ND_PRINT((ndo, " (%d)", ni->rip6_metric));
        return l;