X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7b9670104058d63c37ff5682e769052298df8a6a..refs/heads/master:/print-ipoib.c diff --git a/print-ipoib.c b/print-ipoib.c index 25c4927a..87ae97c8 100644 --- a/print-ipoib.c +++ b/print-ipoib.c @@ -25,14 +25,10 @@ /* \summary: IP-over-InfiniBand (IPoIB) printer */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" -#include - #include "netdissect.h" #include "extract.h" #include "addrtoname.h" @@ -94,6 +90,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);