]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipoib.c
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / print-ipoib.c
index 25c4927a30b181175ae41a6fb9f970293ba4ed70..3d43123505a1151c1f430fe2b7396fc20d1f53ac 100644 (file)
@@ -31,8 +31,6 @@
 
 #include "netdissect-stdinc.h"
 
-#include <stdio.h>
-
 #include "netdissect.h"
 #include "extract.h"
 #include "addrtoname.h"
@@ -94,6 +92,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);