%destructor { expr_free($$); } ct_expr
%type <val> ct_key
-%type <val> export_format output_format monitor_event monitor_object
+%type <val> export_format
+%type <val> monitor_event monitor_object monitor_format
%%
}
;
-monitor_cmd : monitor_event monitor_object output_format
+monitor_cmd : monitor_event monitor_object monitor_format
{
struct handle h = { .family = NFPROTO_UNSPEC };
$$ = cmd_alloc(CMD_MONITOR, CMD_OBJ_RULESET, &h, &@$, NULL);
}
;
+monitor_format : /* empty */ { $$ = NFT_OUTPUT_DEFAULT; }
+ | export_format
+ ;
+
+export_format : XML { $$ = NFT_OUTPUT_XML; }
+ | JSON { $$ = NFT_OUTPUT_JSON; }
+ ;
+
describe_cmd : primary_expr
{
struct handle h = { .family = NFPROTO_UNSPEC };
}
;
-output_format : /* empty */
- {
- $$ = NFT_OUTPUT_DEFAULT;
- }
- | export_format
- ;
-
table_block_alloc : /* empty */
{
$$ = table_alloc();
| CHECKSUM { $$ = MHHDR_CHECKSUM; }
;
-export_format : XML { $$ = NFT_OUTPUT_XML; }
- | JSON { $$ = NFT_OUTPUT_JSON; }
- ;
%%