From 7a548b32d9ad8d6e4a8398573d4fa8c4e4a1f9e0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 7 Feb 2011 00:00:42 +0100 Subject: src: share iptables_command_state across the two programs struct iptables_command_state and quite a bit of the code looks worthy of deduplication. Signed-off-by: Jan Engelhardt --- iptables.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'iptables.c') diff --git a/iptables.c b/iptables.c index 4303cdf6..68819819 100644 --- a/iptables.c +++ b/iptables.c @@ -1311,18 +1311,6 @@ get_kernel_version(void) { kernel_version = LINUX_VERSION(x, y, z); } -struct iptables_command_state { - struct ipt_entry fw; - int invert; - int c; - unsigned int options; - struct xtables_rule_match *matches; - struct xtables_target *target; - char *protocol; - int proto_used; - char **argv; -}; - static void command_default(struct iptables_command_state *cs) { struct xtables_rule_match *matchp; -- cgit v1.2.3