diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-25 20:15:52 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-25 20:15:52 +0200 |
commit | e034477aefe3c6c22b0c1a01cace48e874aa4ccd (patch) | |
tree | 74bdd394b32b094fdfdbb562b8e67217f89ea56e /print-ipoib.c | |
parent | 7b9670104058d63c37ff5682e769052298df8a6a (diff) | |
download | tcpdump-e034477aefe3c6c22b0c1a01cace48e874aa4ccd.tar.gz |
IPoIB: Update the link-layer header length when needed
Diffstat (limited to 'print-ipoib.c')
-rw-r--r-- | print-ipoib.c | 1 |
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); |