Skip to contentSkip to conversation

Problems With Geoip and linux-2.6.16 .....

DISCUSSION Nick Pasich 2 participants 4 messages Mar 29, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

Does anyone know what's going on with "geoip" ????

Email doesn't get through to either Samuel Jean or Nickolas Boulain, at <[email protected]> or <[email protected]> ..... so I thought I would try posting here......

I just got Linux Kernel 2.6.16 and am trying to add geoip.

I'm using the latest patch-o-matic-ng-20060322.

I get the following error:

unable to find ladd slot in src \
/tmp/pom-10459/net/ipv4/netfilter/Makefile \
(./patchlets/geoip/linux-2.6/./net/ipv4/netfilter/Makefile.ladd)

Makefile.ladd shows:

obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o
obj-$(CONFIG_IP_NF_MATCH_GEOIP) += ipt_geoip.o

There is no ipt_limit.c in /usr/src/linux-2.6.16/net/ipv4/netfilter/ There was one on the linux-2.6.15 but not in linux-2.6.16

There is a xt_limit.c in /usr/src/linux-2.6.16/net/netfilter. In xt_limit.c there is a MODULE_ALIAS("ipt_limit").

I use geoip continuously and can't use the new kernel without it.

              ---( Nick Pasich )---

            [email protected]
#1 lore raw
Quoted 2 lines · Nick Pasich

Does anyone know what's going on with "geoip" ????

You need to wait for someone to prepare patch for it. Please keep patience or do it yourself. :)

Besr regards,

Krzysztof Olędzki

#2 lore raw

Krzysztof,

Your's is the only reply I've received.

Because Email doesn't get through to either Samuel Jean or Nickolas Boulain at <[email protected]> or <[email protected]>, I'm wondering if anyone is maintaining "geoip" anymore.

If not, I'll give it a whirl.....

Thanks for the reply,

               ---( Nick Pasich )---

             [email protected]
Quoted 14 lines · Krzysztof Oledzki
Quoted 2 lines · Nick Pasich

Does anyone know what's going on with "geoip" ????

You need to wait for someone to prepare patch for it. Please keep patience or do it yourself. :)

Besr regards,

Krzysztof Ol�dzki

Signature · 3 lines
--------
WebSite: http://NickAndBarb.net
--------
#3 lore raw
Quoted 9 lines · Nick Pasich

Krzysztof,

Your's is the only reply I've received.

Because Email doesn't get through to either Samuel Jean or Nickolas Boulain at <[email protected]> or <[email protected]>, I'm wondering if anyone is maintaining "geoip" anymore.

If not, I'll give it a whirl.....

Please test attached file. I don't use this extension so all I can tell that the patch allows kernel to be modified with patched pom-ng and then successufully compiled.

Best regards,

Krzysztof Olędzki

patchlets/geoip/linux-2.6/net/ipv4/netfilter/Makefile.ladd +1 -1
diff -Nur patch-o-matic-ng-20060328-orig/patchlets/geoip/linux-2.6/net/ipv4/netfilter/Makefile.ladd patch-o-matic-ng-20060328/patchlets/geoip/linux-2.6/net/ipv4/netfilter/Makefile.ladd
@@ -1,3 +1,3 @@
-obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o
+obj-$(CONFIG_IP_NF_MATCH_RECENT) += ipt_recent.o
 obj-$(CONFIG_IP_NF_MATCH_GEOIP) += ipt_geoip.o
 
patchlets/geoip/linux-2.6/net/ipv4/netfilter/ipt_geoip.c +2 -1
diff -Nur patch-o-matic-ng-20060328-orig/patchlets/geoip/linux-2.6/net/ipv4/netfilter/ipt_geoip.c patch-o-matic-ng-20060328/patchlets/geoip/linux-2.6/net/ipv4/netfilter/ipt_geoip.c
@@ -99,6 +99,7 @@
                  const struct net_device *out,
                  const void *matchinfo,
                  int offset,
+		 unsigned int protoff,
                  int *hotdrop)
 {
    const struct ipt_geoip_info *info = matchinfo;
@@ -133,7 +134,7 @@
 }
 
 static int geoip_checkentry(const char *tablename,
-                             const struct ipt_ip *ip,
+                             const void *ip,
                              void *matchinfo,
                              unsigned int matchsize,
                              unsigned int hook_mask)