diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-07 00:00:42 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-02-07 02:59:52 +0100 |
commit | 7a548b32d9ad8d6e4a8398573d4fa8c4e4a1f9e0 (patch) | |
tree | cfbf3c2c43ccf27b1e4a751133f39d734097f9d8 /iptables.c | |
parent | f935ae05040d2d790433abee49ef79f4a8ed393c (diff) |
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 <jengelh@medozas.de>
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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; |