All of lore.kernel.org
 help / color / mirror / Atom feed
* ipt_IPV4OPTSSTRIP & Linux 2.6.14.4
@ 2005-12-23 17:43 René Pfeiffer
  2005-12-23 19:21 ` Damjan
  0 siblings, 1 reply; 3+ messages in thread
From: René Pfeiffer @ 2005-12-23 17:43 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

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.o
net/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é.

-- 
  )\._.,--....,'``.      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 -


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ipt_IPV4OPTSSTRIP & Linux 2.6.14.4
  2005-12-23 17:43 ipt_IPV4OPTSSTRIP & Linux 2.6.14.4 René Pfeiffer
@ 2005-12-23 19:21 ` Damjan
  2005-12-24 18:07   ` René Pfeiffer
  0 siblings, 1 reply; 3+ messages in thread
From: Damjan @ 2005-12-23 19:21 UTC (permalink / raw)
  To: netfilter

> [...]
>   CC [M]  net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.o
> net/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?

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.


-- 
damjan | дамјан
This is my jabber ID --> damjan@bagra.net.mk <-- not my mail address!!!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ipt_IPV4OPTSSTRIP & Linux 2.6.14.4
  2005-12-23 19:21 ` Damjan
@ 2005-12-24 18:07   ` René Pfeiffer
  0 siblings, 0 replies; 3+ messages in thread
From: René Pfeiffer @ 2005-12-24 18:07 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

On Dec 23, 2005 at 2021 +0100, Damjan appeared and said:
> > [...]
> > 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?
> 
> 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 :)

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é.

-- 
  )\._.,--....,'``.      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 -


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-24 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-23 17:43 ipt_IPV4OPTSSTRIP & Linux 2.6.14.4 René Pfeiffer
2005-12-23 19:21 ` Damjan
2005-12-24 18:07   ` René Pfeiffer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.