Suggested-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> Signed-off-by: Florian Westphal <fw@xxxxxxxxx> --- src/proto.c | 1 + src/scanner.l | 1 + 2 files changed, 2 insertions(+) diff --git a/src/proto.c b/src/proto.c index b6466f8b65d4..67c519be1382 100644 --- a/src/proto.c +++ b/src/proto.c @@ -1058,6 +1058,7 @@ static const struct symbol_table ethertype_tbl = { SYMBOL("arp", __constant_htons(ETH_P_ARP)), SYMBOL("ip6", __constant_htons(ETH_P_IPV6)), SYMBOL("vlan", __constant_htons(ETH_P_8021Q)), + SYMBOL("8021ad", __constant_htons(ETH_P_8021AD)), SYMBOL_LIST_END }, }; diff --git a/src/scanner.l b/src/scanner.l index b4e7cf199ccd..9eb79d2d2454 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -422,6 +422,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "cfi" { return CFI; } "pcp" { return PCP; } } +"8021ad" { yylval->string = xstrdup(yytext); return STRING; } "arp" { scanner_push_start_cond(yyscanner, SCANSTATE_ARP); return ARP; } <SCANSTATE_ARP>{ -- 2.26.3