diff options
Diffstat (limited to 'lib/command_parse.y')
| -rw-r--r-- | lib/command_parse.y | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y index 1bc8ea1a44..0f3e42219e 100644 --- a/lib/command_parse.y +++ b/lib/command_parse.y @@ -101,6 +101,8 @@ %token <string> IPV6_PREFIX %token <string> VARIABLE %token <string> RANGE +%token <string> MAC +%token <string> MAC_PREFIX /* union types for parsed rules */ %type <node> start @@ -273,6 +275,16 @@ placeholder_token_real: XFREE (MTYPE_LEX, $1); } +| MAC +{ + $$ = new_token_node (ctx, MAC_TKN, $1, doc_next(ctx)); + XFREE (MTYPE_LEX, $1); +} +| MAC_PREFIX +{ + $$ = new_token_node (ctx, MAC_PREFIX_TKN, $1, doc_next(ctx)); + XFREE (MTYPE_LEX, $1); +} placeholder_token: placeholder_token_real varname_token |
