X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/769d730e80f9f6c0cac9e4948e5f8225b079d27b..39d15607cad1b4b463794c1a67873f6182dc52f7:/print-vxlan.c diff --git a/print-vxlan.c b/print-vxlan.c index 2e5433e3..3ef9cf6a 100644 --- a/print-vxlan.c +++ b/print-vxlan.c @@ -24,29 +24,25 @@ #include "interface.h" #include "extract.h" -#include "addrtoname.h" - -#include "udp.h" /* * VXLAN header, draft-mahalingam-dutt-dcops-vxlan-03 * * 0 1 2 3 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - * * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * |R|R|R|R|I|R|R|R| Reserved | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | VXLAN Network Identifier (VNI) | Reserved | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ void -vxlan_print(const u_char *bp, u_int len, u_int port) +vxlan_print(const u_char *bp, u_int len) { u_int8_t flags; u_int32_t vni; - + if (len < 8) { printf("[|VXLAN]"); return;