From 835c3d9b7a28f5ecfc2dea2300946e27811f16a5 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 24 Mar 2015 23:19:24 +0100 Subject: tools: bpf_asm: cleanup vlan extension related token We now have K_VLANT, K_VLANP and K_VLANTPID. Clean them up into more descriptive token, namely K_VLAN_TCI, K_VLAN_AVAIL and K_VLAN_TPID. Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- tools/net/bpf_exp.l | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/net/bpf_exp.l') diff --git a/tools/net/bpf_exp.l b/tools/net/bpf_exp.l index c83af3fb77de..7cc72a336645 100644 --- a/tools/net/bpf_exp.l +++ b/tools/net/bpf_exp.l @@ -90,10 +90,10 @@ extern void yyerror(const char *str); "#"?("hatype") { return K_HATYPE; } "#"?("rxhash") { return K_RXHASH; } "#"?("cpu") { return K_CPU; } -"#"?("vlan_tci") { return K_VLANT; } -"#"?("vlan_pr") { return K_VLANP; } -"#"?("vlan_avail") { return K_VLANP; } -"#"?("vlan_tpid") { return K_VLANTPID; } +"#"?("vlan_tci") { return K_VLAN_TCI; } +"#"?("vlan_pr") { return K_VLAN_AVAIL; } +"#"?("vlan_avail") { return K_VLAN_AVAIL; } +"#"?("vlan_tpid") { return K_VLAN_TPID; } "#"?("rand") { return K_RAND; } ":" { return ':'; } -- cgit v1.2.3