summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-04-05 13:21:19 +0200
committerPhil Sutter <phil@nwl.cc>2021-11-23 15:01:23 +0100
commit1189d830ea4fd269da87761d400ebabca02e1ef3 (patch)
treeb7c6e734d3dfc43727b3ce589633d80c264e01b1 /iptables/xshared.h
parent1eab8e83aec0e6965f11f8cad460add1caeae629 (diff)
xshared: Merge and share parse_chain()
Have a common routine to perform chain name checks, combining all variants' requirements. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r--iptables/xshared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index b59116ac..6d6acbca 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -235,6 +235,7 @@ char cmd2char(int option);
void add_command(unsigned int *cmd, const int newcmd,
const int othercmds, int invert);
int parse_rulenumber(const char *rule);
+void parse_chain(const char *chainname);
void generic_opt_check(int command, int options);
char opt2char(int option);