summaryrefslogtreecommitdiffstats
path: root/src/flowtable.c
diff options
context:
space:
mode:
authorZhongqiu Duan <dzq.aishenghu0@gmail.com>2025-03-19 14:20:53 +0000
committerFlorian Westphal <fw@strlen.de>2025-03-19 16:02:28 +0100
commitc59d42a90b0d279955d5051c2306733bc01522f8 (patch)
tree4875c04f9bad97a4c3e88bf329b6c0d75935556d /src/flowtable.c
parenta7dfa49d34c76a420778a6fce2b5e7d85f0c8b1a (diff)
src: remove unused str2XXX helpers
After commit 80077787f8f2 ("src: remove json support"), these internal functions are no longer used: nftnl_str2hooknum nftnl_str2ntoh nftnl_str2cmp str2ctkey str2ctdir str2exthdr_op str2exthdr_type str2meta_key nftnl_str2nat nftnl_str2range str2rt_key nftnl_str2hooknum Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/flowtable.c')
-rw-r--r--src/flowtable.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/flowtable.c b/src/flowtable.c
index 2a8d374..fbbe0a8 100644
--- a/src/flowtable.c
+++ b/src/flowtable.c
@@ -488,17 +488,6 @@ static const char *nftnl_hooknum2str(int family, int hooknum)
return "unknown";
}
-static inline int nftnl_str2hooknum(int family, const char *hook)
-{
- int hooknum;
-
- for (hooknum = 0; hooknum < NF_INET_NUMHOOKS; hooknum++) {
- if (strcmp(hook, nftnl_hooknum2str(family, hooknum)) == 0)
- return hooknum;
- }
- return -1;
-}
-
EXPORT_SYMBOL(nftnl_flowtable_parse);
int nftnl_flowtable_parse(struct nftnl_flowtable *c, enum nftnl_parse_type type,
const char *data, struct nftnl_parse_err *err)