]> The Tcpdump Group git mirrors - tcpdump/commitdiff
IPoIB: Update the link-layer header length when needed
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 25 Jul 2020 18:15:52 +0000 (20:15 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 25 Jul 2020 18:15:52 +0000 (20:15 +0200)
print-ipoib.c

index 25c4927a30b181175ae41a6fb9f970293ba4ed70..54ab9c6e14a7f1210b327f357d1cbf668141b931 100644 (file)
@@ -94,6 +94,7 @@ ipoib_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen
        }
        orig_length = length;
 
+       ndo->ndo_ll_hdr_len += IPOIB_HDRLEN;
        length -= IPOIB_HDRLEN;
        caplen -= IPOIB_HDRLEN;
        ether_type = GET_BE_U_2(p + 40);