From ed4ed19b98bc90b23635fd1aa62b9b86e8fc84bc Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Thu, 24 Nov 2005 17:04:05 +0000 Subject: fix compilation of iptables on [old] systems that don't have IPT_F_GOTO --- iptables-save.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'iptables-save.c') diff --git a/iptables-save.c b/iptables-save.c index 4f6f156..79b5dc7 100644 --- 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')) +#ifdef IPT_F_GOTO printf("-%c %s ", e->ip.flags & IPT_F_GOTO ? 'g' : 'j', target_name); +#else + printf("-j %s ", target_name); +#endif /* Print targinfo part */ t = ipt_get_target((struct ipt_entry *)e); -- cgit v1.2.3