* [PATCH] ip_tables.h
@ 2007-04-07 17:43 Patrick Ale
2007-04-07 17:57 ` Patrick Ale
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Ale @ 2007-04-07 17:43 UTC (permalink / raw)
To: linux-kernel, netfilter
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
Hi lads,
I had some problems compiling the external netfilter modules due to
missing definitions.
I googled a lot, saw a lot of people having the same problems but no
real answer to how to fix it.
So.. I made a little patch which make things work for me, at least.
Modules that work after applying the patch are the geopip module,
connlimit module, and prolly more, but I didnt test them.
Please note, I am not a coder, not a maintainer and I am happy that I
didnt break anything so please don't consider this as a proposal to
include in the kernel or something, I am just in favor of sharing what
helped me getting things to work, if i can help others with it or if
it is interesting material for inclusion, even better :)
So, the patch is attached in this email and can also be found on
http://www.patrickale.eu/documents/archives/patches/ip_tables.h.diff
I hope this helps a people or two.
Patrick
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ip_tables.h.diff --]
[-- Type: text/x-patch; name="ip_tables.h.diff", Size: 570 bytes --]
--- include/linux/netfilter_ipv4/ip_tables.h.orig 2007-04-07 20:30:25.344365707 +0200
+++ include/linux/netfilter_ipv4/ip_tables.h 2007-04-07 20:34:05.076887550 +0200
@@ -34,6 +34,12 @@
#define ipt_table xt_table
#define ipt_get_revision xt_get_revision
+#define ipt_register_match(mtch) \
+({ (mtch)->family = AF_INET; \
+ xt_register_match(mtch); })
+#define ipt_unregister_match(mtch) xt_unregister_match(mtch)
+
+
/* Yes, Virginia, you have to zero the padding. */
struct ipt_ip {
/* Source and destination IP addr */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ip_tables.h
2007-04-07 17:43 [PATCH] ip_tables.h Patrick Ale
@ 2007-04-07 17:57 ` Patrick Ale
2007-04-07 18:54 ` Patrick Ale
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Ale @ 2007-04-07 17:57 UTC (permalink / raw)
To: linux-kernel, netfilter
On 4/7/07, Patrick Ale <patrick.ale@gmail.com> wrote:
> Hi lads,
Oh! And! I don't want to take credit for things I didn't write, which
is this exactly.
I merely got the ip_tables.h header from 2.6.20 and filtered out what
I needed to get things work.
So, the actual credit for the code in the patch goes to the person who
put it in ip_tables.h under 2.6.20.
So whoever you are, thanks :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ip_tables.h
2007-04-07 17:57 ` Patrick Ale
@ 2007-04-07 18:54 ` Patrick Ale
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Ale @ 2007-04-07 18:54 UTC (permalink / raw)
To: linux-kernel, netfilter
On 4/7/07, Patrick Ale <patrick.ale@gmail.com> wrote:
And my "patch" is made obsolete :P
Jan Engelhard from the netfilter list made patch set within the
patch-o-matic tree.
Cheers Jan :D
Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-07 18:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-07 17:43 [PATCH] ip_tables.h Patrick Ale
2007-04-07 17:57 ` Patrick Ale
2007-04-07 18:54 ` Patrick Ale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®