mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Patrick Ale" <patrick.ale@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
	netfilter@lists.netfilter.org
Subject: [PATCH] ip_tables.h
Date: Sat, 7 Apr 2007 19:43:16 +0200	[thread overview]
Message-ID: <8d158e1f0704071043w5483f60ayc9f240abb1039392@mail.gmail.com> (raw)

[-- 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 */


             reply	other threads:[~2007-04-07 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-07 17:43 Patrick Ale [this message]
2007-04-07 17:57 ` Patrick Ale
2007-04-07 18:54   ` Patrick Ale

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=8d158e1f0704071043w5483f60ayc9f240abb1039392@mail.gmail.com \
    --to=patrick.ale@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfilter@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 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®