summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2012-09-04 05:24:47 +0200
committerJan Engelhardt <jengelh@inai.de>2012-09-27 23:36:58 +0200
commitcd2f9bdbb7f9b737e5d640aafeb78bcd8e3a7adf (patch)
treefb1ab73ce71c44406051d024b2fba40b88dd97b5 /include
parent954b76c317f641b7faf33cc26931d45585cc0dea (diff)
iptables: support for target aliases
This patch allows for target names listed on the command line to be rewritten to new names and revisions. As before, we will pick a revision that is supported by the kernel - now including real_name in the search. This gives us the possibility to test for many action names. Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Diffstat (limited to 'include')
-rw-r--r--include/xtables.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xtables.h b/include/xtables.h
index 3b15e67e..7bdc331c 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -282,6 +282,9 @@ struct xtables_target
const char *name;
+ /* Real target behind this, if any. */
+ const char *real_name;
+
/* Revision of target (0 by default). */
u_int8_t revision;