summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
authorJonas Berlin <xkr47@outerspace.dyndns.rog>2005-04-15 09:35:24 +0000
committerHarald Welte <laforge@gnumonks.org>2005-04-15 09:35:24 +0000
commit1a39d1e68c03b980b8a78c9d42714d9e95bd23d4 (patch)
treebb562e7f457085c7db64c7465446d7041c568f6d /iptables-save.c
parent6b5effcaf26b9eaf8e6f63d9ad3570a045fb4f0c (diff)
fix iptables-save/restore of goto (Jonas Berlin)
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);