]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vxlan.c
IPoIB: Add the output with -e for a capture test
[tcpdump] / print-vxlan.c
index a27b1d7116b62a3cf3f076c783e80703870b47ee..d2b896b094503dcf9f215c75fd65965f83e55753 100644 (file)
@@ -65,7 +65,7 @@ vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len)
     ND_PRINT("flags [%s] (0x%02x), ", flags & 0x08 ? "I" : ".", flags);
     ND_PRINT("vni %u\n", vni);
 
-    ether_print(ndo, bp, len - VXLAN_HDR_LEN, ndo->ndo_snapend - bp, NULL, NULL);
+    ether_print(ndo, bp, len - VXLAN_HDR_LEN, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
 
     return;