diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-22 22:55:08 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-30 10:00:59 +0100 |
commit | 284a3e67563a8984fb0f513e1dc27a2364a12ce2 (patch) | |
tree | 41a66f581b4e05fc28e329f2e9a8996d76ebc843 /iptables/xshared.h | |
parent | 45989e8fbec52fcbafa5ae9917fc2a0d62e3640d (diff) |
xshared: Share a common implementation of parse_rulenumber()
The function is really small, but still copied four times.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r-- | iptables/xshared.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h index 0b9b357c..85bbfa12 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -186,5 +186,6 @@ void command_jump(struct iptables_command_state *cs, const char *jumpto); char cmd2char(int option); void add_command(unsigned int *cmd, const int newcmd, const int othercmds, int invert); +int parse_rulenumber(const char *rule); #endif /* IPTABLES_XSHARED_H */ |