summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
authorHenrik Nordstrom <hno@marasystems.com>2005-11-05 09:26:40 +0000
committerHarald Welte <laforge@gnumonks.org>2005-11-05 09:26:40 +0000
commit17fc163babc348780bae4321071845748f7b7985 (patch)
treef7c75cfdd3b2206bb405748f2b3aed689a25d03a /iptables-save.c
parent361bac2f2c25ecabef125c6a8bb8dfc194bf73f1 (diff)
add 'goto' support (Henrik Nordstrom <hno@marasystems.com>)
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 6c7267e2..4f6f156d 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -197,7 +197,7 @@ static void print_rule(const struct ipt_entry *e,
/* Print target name */
target_name = iptc_get_target(e, h);
if (target_name && (*target_name != '\0'))
- printf("-j %s ", target_name);
+ printf("-%c %s ", e->ip.flags & IPT_F_GOTO ? 'g' : 'j', target_name);
/* Print targinfo part */
t = ipt_get_target((struct ipt_entry *)e);