]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-geneve.c
change make check to work with POSIX shell
[tcpdump] / print-geneve.c
index d1ed242fda6ab533c9af6ace3eb8f2c8cdee08d7..40402ab4200cd7ebcb0eac3eed4dc91d656c1fb1 100644 (file)
@@ -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