]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-geneve.c
change make check to work with POSIX shell
[tcpdump] / print-geneve.c
index d565103d48aa90374e7f2ee93dc031dc86c44556..40402ab4200cd7ebcb0eac3eed4dc91d656c1fb1 100644 (file)
@@ -223,9 +223,9 @@ geneve_print(netdissect_options *ndo, const u_char *bp, u_int len)
     else
         ND_PRINT((ndo, "\n\t"));
 
     else
         ND_PRINT((ndo, "\n\t"));
 
-    if (ethertype_print(ndo, prot, bp, len, len) == 0) {
+    if (ethertype_print(ndo, prot, bp, len, ndo->ndo_snapend - bp, NULL, NULL) == 0) {
         if (prot == ETHERTYPE_TEB)
         if (prot == ETHERTYPE_TEB)
-            ether_print(ndo, bp, len, len, NULL, NULL);
+            ether_print(ndo, bp, len, ndo->ndo_snapend - bp, NULL, NULL);
         else
             ND_PRINT((ndo, "geneve-proto-0x%x", prot));
     }
         else
             ND_PRINT((ndo, "geneve-proto-0x%x", prot));
     }