summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/parser.y7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/parser.y b/src/parser.y
index 20a836e7..38b655d7 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -1848,10 +1848,9 @@ eth_hdr_expr : ETHER eth_hdr_field
}
| ETHER
{
- uint16_t data = ARPHRD_ETHER;
- $$ = constant_expr_alloc(&@$, &arphrd_type,
- BYTEORDER_BIG_ENDIAN,
- sizeof(data) * BITS_PER_BYTE, &data);
+ $$ = symbol_expr_alloc(&@$, SYMBOL_VALUE,
+ current_scope(state),
+ "ether");
}
;