[BROKEN] ipt_ wrappers for xt_ functions (WAS: Problems Compiling Geoip on linux-2.6.21-rc3)

Jan Engelhardt jengelh at linux01.gwdg.de
Thu Mar 15 17:03:29 CET 2007


On Mar 15 2007 14:36, Samuel Jean wrote:
>
>How do we workaround the missing wrappers ? Another #if KERNEL_VERSION
>declarations ?
>
>> Kernel: arch/i386/boot/bzImage is ready  (#1)
>>   Building modules, stage 2.
>>   MODPOST 256 modules
>> WARNING: "ipt_unregister_match" [net/ipv4/netfilter/ipt_geoip.ko] undefined!
>> WARNING: "ipt_register_match" [net/ipv4/netfilter/ipt_geoip.ko] undefined!
>> make[1]: *** [__modpost] Error 1
>> make: *** [modules] Error 2

#if DONT_HAVE_IPT /* nicely recent */
#    the wrappers as present before the commit
#endif
#if DONT_HAVE_XT /* really old kernel */
#    define xt_match ipt_match
#    define xt_register(x) do { (x)->family = AF_INET; ipt_register(x); }
#endif

Something like that. Oh yeah what a wonderful world
if pomngs were integrated! :>



Jan
-- 



More information about the netfilter-devel mailing list