git://git.onelab.eu
/
iptables.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iptables-1.3.5
[iptables.git]
/
iptables-save.c
diff --git
a/iptables-save.c
b/iptables-save.c
index
6c7267e
..
79b5dc7
100644
(file)
--- a/
iptables-save.c
+++ b/
iptables-save.c
@@
-197,7
+197,11
@@
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'))
/* Print target name */
target_name = iptc_get_target(e, h);
if (target_name && (*target_name != '\0'))
+#ifdef IPT_F_GOTO
+ printf("-%c %s ", e->ip.flags & IPT_F_GOTO ? 'g' : 'j', target_name);
+#else
printf("-j %s ", target_name);
printf("-j %s ", target_name);
+#endif
/* Print targinfo part */
t = ipt_get_target((struct ipt_entry *)e);
/* Print targinfo part */
t = ipt_get_target((struct ipt_entry *)e);