eth may easily occur when using ifname masks. This could be also
fixed by interpreting 'eth' as a simple string in the parser but
I think this selector also looks more similar to what we use in
tcpdump.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
%token BRIDGE "bridge"
-%token ETH "eth"
+%token ETHER "ether"
%token SADDR "saddr"
%token DADDR "daddr"
%token TYPE "type"
| TRANSPORT_HDR { $$ = PAYLOAD_BASE_TRANSPORT_HDR; }
;
-eth_hdr_expr : ETH eth_hdr_field
+eth_hdr_expr : ETHER eth_hdr_field
{
$$ = payload_expr_alloc(&@$, &payload_eth, $2);
}
"bridge" { return BRIDGE; }
-"eth" { return ETH; }
+"ether" { return ETHER; }
"saddr" { return SADDR; }
"daddr" { return DADDR; }
"type" { return TYPE; }