X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/0db4dcafe5ae38201d3869c96a96cb714d82ff35..f152c1268f28fc84d15d364b742f500e12374b33:/print-geneve.c diff --git a/print-geneve.c b/print-geneve.c index d1ed242f..40402ab4 100644 --- a/print-geneve.c +++ b/print-geneve.c @@ -223,7 +223,7 @@ geneve_print(netdissect_options *ndo, const u_char *bp, u_int len) else ND_PRINT((ndo, "\n\t")); - if (ethertype_print(ndo, prot, bp, len, len, NULL, NULL) == 0) { + if (ethertype_print(ndo, prot, bp, len, ndo->ndo_snapend - bp, NULL, NULL) == 0) { if (prot == ETHERTYPE_TEB) ether_print(ndo, bp, len, ndo->ndo_snapend - bp, NULL, NULL); else