#include "netdissect.h"
#include "extract.h"
-static const char tstr[] = " [|VXLAN-GPE]";
static const struct tok vxlan_gpe_flags [] = {
{ 0x08, "I" },
{ 0x04, "P" },
ND_TCHECK_LEN(bp, VXLAN_GPE_HDR_LEN);
- flags = EXTRACT_U_1(bp);
+ flags = GET_U_1(bp);
bp += 3;
- next_protocol = EXTRACT_U_1(bp);
+ next_protocol = GET_U_1(bp);
bp += 1;
- vni = EXTRACT_BE_U_3(bp);
+ vni = GET_BE_U_3(bp);
bp += 4;
ND_PRINT("VXLAN-GPE, ");
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}