From: Phil Oester <kernel@linuxace.com>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH] iptables compilation on <=2.6.13
Date: Wed, 23 Nov 2005 14:37:10 -0800 [thread overview]
Message-ID: <20051123223710.GA20202@linuxace.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
Iptables since at least 1.3.3 will not compile with kernels <= 2.6.13
due to addition of the goto target. Below patch corrects this, and
closes bug #386.
Phil
[-- Attachment #2: patch-goto --]
[-- Type: text/plain, Size: 933 bytes --]
diff -ru ipt-orig/iptables.c ipt-new/iptables.c
--- ipt-orig/iptables.c 2005-11-17 05:04:49.000000000 -0800
+++ ipt-new/iptables.c 2005-11-23 14:03:21.000000000 -0800
@@ -1415,8 +1415,10 @@
if (format & FMT_NOTABLE)
fputs(" ", stdout);
+#ifdef IPT_F_GOTO
if(fw->ip.flags & IPT_F_GOTO)
printf("[goto] ");
+#endif
IPT_MATCH_ITERATE(fw, print_match, &fw->ip, format & FMT_NUMERIC);
diff -ru ipt-orig/iptables-save.c ipt-new/iptables-save.c
--- ipt-orig/iptables-save.c 2005-11-05 01:26:40.000000000 -0800
+++ ipt-new/iptables-save.c 2005-11-23 14:27:12.000000000 -0800
@@ -197,7 +197,11 @@
/* 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);
next reply other threads:[~2005-11-23 22:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 22:37 Phil Oester [this message]
2005-11-26 23:56 ` [PATCH] iptables compilation on <=2.6.13 Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051123223710.GA20202@linuxace.com \
--to=kernel@linuxace.com \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.