summaryrefslogtreecommitdiff
path: root/print-ipoib.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-25 20:15:52 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-25 20:15:52 +0200
commite034477aefe3c6c22b0c1a01cace48e874aa4ccd (patch)
tree74bdd394b32b094fdfdbb562b8e67217f89ea56e /print-ipoib.c
parent7b9670104058d63c37ff5682e769052298df8a6a (diff)
downloadtcpdump-e034477aefe3c6c22b0c1a01cace48e874aa4ccd.tar.gz
IPoIB: Update the link-layer header length when needed
Diffstat (limited to 'print-ipoib.c')
-rw-r--r--print-ipoib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/print-ipoib.c b/print-ipoib.c
index 25c4927a..54ab9c6e 100644
--- a/print-ipoib.c
+++ b/print-ipoib.c
@@ -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);