From 5a14df395053f4094a1e3ebea98e3487cbfc0e63 Mon Sep 17 00:00:00 2001 From: Maria Jan Matejka Date: Thu, 19 Oct 2017 12:39:44 +0200 Subject: Filter: Instruction codes named as enum The two-letter instructions were quite messy but they could be easily read from memory dumps. Now GDB (since 2012) supports pretty printing enum values and GCC checks the switch construction for missing enum values so we are converting the nice two-byte values to enums. Anyway, the enum still keeps the old two-byte values to be able to read the instruction codes even without GDB from plain memory dump. --- conf/confbase.Y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'conf') diff --git a/conf/confbase.Y b/conf/confbase.Y index 9c08a41a..b8deed54 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -43,6 +43,8 @@ CF_DECLS char *t; struct rtable_config *r; struct f_inst *x; + struct f_dynamic_attr fda; + struct f_static_attr fsa; struct filter *f; struct f_tree *e; struct f_trie *trie; -- cgit v1.2.3