ipt_IPV4OPTSSTRIP & Linux 2.6.14.4
Hello!
I just tried patch-o-matic-ng with a new Linux kernel 2.6.14.4 in order to try some of the extensions. The test system is a Debian Sarge 3.1r1, the compiler is a GCC 3.4. During the build process the compiler aborts with the following error:
[...]
CC [M] net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.onet/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c: In function `target':net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:33: warning: implicit declaration of function skb_ip_make_writable' net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: structure has no member named nfcache' net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: `NFC_ALTERED' undeclared (first use in this function) net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: (Each undeclared identifier is reported only once net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: for each function it appears in.) make[3]: *** [net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
A short "grep skb_ip_make_writable net/ipv4/netfilter/*.c" shows that skb_ip_make_writable() is only used in the IPV4OPTSSTRIP extension. Has anyone else seen this error?
Best regards,
René.
Signature · 3 lines
)\._.,--....,'``. Let GNU/Linux work for you while you take a nap. /, _.. \ _\ (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/ `._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Teaching -
Quoted 13 lines
[...]
CC [M]net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.onet/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c: In function `target':net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:33: warning: implicit declaration of functionskb_ip_make_writable' net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: structure has no member namednfcache'net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: `NFC_ALTERED' undeclared (first use in this function)net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: (Each undeclared identifier is reported only oncenet/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c:52: error: for each function it appears in.) make[3]: *** [net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
Quoted 3 lines
A short "grep
skb_ip_make_writablenet/ipv4/netfilter/*.c" shows thatskb_ip_make_writable()is only used in the IPV4OPTSSTRIP extension. Has anyone else seen this error?
skb_ip_make_writable is renamed to skb_make_writable, but that's a "warning", it's not what causes the compile error(*).
The compile error is because of this line :
skb->nfcache |= NFC_ALTERED;
which I removed, not knowing what it does, and then ipt_IPV4OPTSSTRIP compiles... but I don't know if it works :)
* it would be problem if you tried to use the module, it wouldn't load because of missing symbols.
Signature · 2 lines
damjan | дамјан This is my jabber ID --> [email protected] <-- not my mail address!!!
Quoted 5 lines · Damjan appeared and
Quoted 4 lines
[...]
A short "grepskb_ip_make_writablenet/ipv4/netfilter/*.c" shows thatskb_ip_make_writable()is only used in the IPV4OPTSSTRIP extension. Has anyone else seen this error?
Quoted 8 lines
skb_ip_make_writableis renamed toskb_make_writable, but that's a "warning", it's not what causes the compileerror(*).The compile error is because of this line :
skb->nfcache |= NFC_ALTERED;which I removed, not knowing what it does, and then
ipt_IPV4OPTSSTRIPcompiles... but I don't know if it works :)
Hm, then let's find out. ;) I thought it must be something like this, but I asked because I am not that familiar withe the code of the Netfilter extensions. I'll let you know what my firewall system said. It has problem with the Ralink wireless driver as well, so there will be a lot of compiling anyway.
Thanks,
René.
Signature · 3 lines
)\._.,--....,'``. Let GNU/Linux work for you while you take a nap. /, _.. \ _\ (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/ `._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Teaching -