From: Tim Gardner <timg@tpi.com>
To: Harald Welte <laforge@netfilter.org>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: Call for testing: patch-o-matic-ng (condition filter)
Date: Tue, 23 Dec 2003 07:57:23 -0700 [thread overview]
Message-ID: <200312230757.23207.timg@tpi.com> (raw)
In-Reply-To: <20031222120047.GK5058@obroa-skai.de.gnumonks.org>
[-- Attachment #1: Type: text/plain, Size: 619 bytes --]
Harald,
The condition filter (at least for 2.6) has extra files:
condition/linux/net/ipv6/Makefile.ladd
condition/linux/net/ipv6/Config.in.ladd
The presense of Makefile.ladd will not allow the filter to be applied. I
suspect Config.in.ladd will cause a similar problem for 2.4.
Attached is a patch that removes these files as well as patches
ipt_condition.c for 2.6.
ipv6/netfilter/ipt_condition.c compiles with warnings. Since I'm not using it
(and I'm basically lazy), I'll leave it up to the authors to make it correct
for 2.6
rtg
--
Tim Gardner - timg@tpi.com
www.tpi.com 406-443-5357
[-- Attachment #2: condition.diffs --]
[-- Type: text/x-diff, Size: 2285 bytes --]
diff -r -u --new-file netfilter/patch-o-matic-ng/condition/linux/net/ipv4/netfilter/ipt_condition.c netfilter.wrk/patch-o-matic-ng/condition/linux/net/ipv4/netfilter/ipt_condition.c
--- netfilter/patch-o-matic-ng/condition/linux/net/ipv4/netfilter/ipt_condition.c 2003-12-18 11:47:55.000000000 -0700
+++ netfilter.wrk/patch-o-matic-ng/condition/linux/net/ipv4/netfilter/ipt_condition.c 2003-12-23 07:45:30.000000000 -0700
@@ -17,6 +17,7 @@
\*-------------------------------------------*/
#include<linux/module.h>
+#include <linux/version.h>
#include<linux/proc_fs.h>
#include<linux/spinlock.h>
#include<linux/string.h>
@@ -90,9 +91,17 @@
static int
-match(const struct sk_buff *skb, const struct net_device *in,
- const struct net_device *out, const void *matchinfo, int offset,
- const void *hdr, u_int16_t datalen, int *hotdrop)
+match(
+ const struct sk_buff *skb,
+ const struct net_device *in,
+ const struct net_device *out,
+ const void *matchinfo,
+ int offset,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+ const void *hdr,
+ u_int16_t datalen,
+#endif
+ int *hotdrop)
{
const struct condition_info *info =
(const struct condition_info *) matchinfo;
diff -r -u --new-file netfilter/patch-o-matic-ng/condition/linux/net/ipv6/Config.in.ladd netfilter.wrk/patch-o-matic-ng/condition/linux/net/ipv6/Config.in.ladd
--- netfilter/patch-o-matic-ng/condition/linux/net/ipv6/Config.in.ladd 2003-12-20 09:38:19.000000000 -0700
+++ netfilter.wrk/patch-o-matic-ng/condition/linux/net/ipv6/Config.in.ladd 1969-12-31 17:00:00.000000000 -0700
@@ -1,2 +0,0 @@
- dep_tristate ' MAC address match support' CONFIG_IP6_NF_MATCH_MAC $CONFIG_IP6_NF_IPTABLES
- dep_tristate ' Condition variable match support' CONFIG_IP6_NF_MATCH_CONDITION $CONFIG_IP6_NF_IPTABLES
diff -r -u --new-file netfilter/patch-o-matic-ng/condition/linux/net/ipv6/Makefile.ladd netfilter.wrk/patch-o-matic-ng/condition/linux/net/ipv6/Makefile.ladd
--- netfilter/patch-o-matic-ng/condition/linux/net/ipv6/Makefile.ladd 2003-12-20 09:38:19.000000000 -0700
+++ netfilter.wrk/patch-o-matic-ng/condition/linux/net/ipv6/Makefile.ladd 1969-12-31 17:00:00.000000000 -0700
@@ -1,2 +0,0 @@
-obj-$(CONFIG_IP6_NF_MATCH_MARK) += ip6t_mark.o
-obj-$(CONFIG_IP6_NF_MATCH_CONDITION) += ip6t_condition.o
next prev parent reply other threads:[~2003-12-23 14:57 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-21 12:24 Call for testing: patch-o-matic-ng Harald Welte
2003-12-22 9:56 ` KOVACS Krisztian
2003-12-22 12:00 ` Harald Welte
2003-12-23 14:57 ` Tim Gardner [this message]
2003-12-23 15:13 ` Call for testing: patch-o-matic-ng (fuzzy filter) Tim Gardner
2003-12-23 17:41 ` Call for testing: patch-o-matic-ng (condition filter) Harald Welte
2003-12-23 13:13 ` Call for testing: patch-o-matic-ng Gaël Le Mignot
2003-12-23 17:30 ` Harald Welte
2003-12-23 18:56 ` Unknown, Alistair Tonner
2003-12-24 0:26 ` Gaël Le Mignot
2003-12-24 1:03 ` Unknown, Alistair Tonner
2003-12-24 1:03 ` Unknown, Alistair Tonner
[not found] ` <200312231356.17135.Alistair Tonner <>
[not found] ` <200312231356.17135.AlistairTonner<>
2003-12-25 9:06 ` Galtar
2003-12-25 9:41 ` Antony Stone
2004-01-02 12:41 ` Henrik Nordstrom
2004-01-22 15:57 ` ip_conntrack_pptp Jan Kaastrup
2004-01-22 17:53 ` ip_conntrack_pptp Harald Welte
2004-01-22 18:09 ` ip_conntrack_pptp Unknown, Alistair Tonner
2004-01-22 18:09 ` ip_conntrack_pptp Unknown, Alistair Tonner
2004-01-22 18:09 ` ip_conntrack_pptp Unknown, Alistair Tonner
2004-01-22 19:41 ` ip_conntrack_pptp Arnt Karlsen
[not found] ` <000d01c3e3ed$9875b0f0$2d64a8c0@pcjka>
2004-01-26 16:19 ` ip_conntrack_pptp Harald Welte
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=200312230757.23207.timg@tpi.com \
--to=timg@tpi.com \
--cc=laforge@netfilter.org \
--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.