From 7cab33a24a7293dc2ec4f132933ce1227d226b5b Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 21 Nov 2025 16:53:35 +0100 Subject: parser_bison: Introduce tokens for chain types Use the already existing SCANSTATE_TYPE for keyword scoping. This is a bit of back-n-forth from string to token and back to string but it eliminates the helper function and also takes care of error handling. Note that JSON parser does not validate the type string at all but relies upon the kernel to reject wrong ones. Signed-off-by: Phil Sutter Reviewed-by: Florian Westphal --- include/rule.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/rule.h') diff --git a/include/rule.h b/include/rule.h index e67a0152..7c704be8 100644 --- a/include/rule.h +++ b/include/rule.h @@ -260,7 +260,6 @@ struct chain { #define STD_PRIO_BUFSIZE 100 extern int std_prio_lookup(const char *std_prio_name, int family, int hook); -extern const char *chain_type_name_lookup(const char *name); extern const char *chain_hookname_lookup(const char *name); extern struct chain *chain_alloc(void); extern struct chain *chain_get(struct chain *chain); -- cgit v1.2.3