* [1/1] ipt_osf: fix ipt_osf compilation on some distros.
@ 2005-02-25 5:07 Evgeniy Polyakov
2005-02-27 16:32 ` Patrick McHardy
0 siblings, 1 reply; 8+ messages in thread
From: Evgeniy Polyakov @ 2005-02-25 5:07 UTC (permalink / raw)
To: netfilter-devel; +Cc: Harald Welte, Patrick McHardy
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
Some distros have magical header mess, which leads to undefined struct
tcphdr,
when net/tcp.h is not included directly.
Following patch workarounds it.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
--- orig/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c~ 2005-02-07
18:55:56.000000000 +0300
+++orig/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c 2005-02-24
12:49:22.329311368 +0300
@@ -47,6 +47,7 @@
#include <net/sock.h>
#include <net/ip.h>
+#include <net/tcp.h>
#include <linux/netfilter_ipv4/ip_tables.h>
P.S. Should I resend lost patch with Subject line
"[1/1] libipt_osf: fix iptables-1.3.0rc1 compilation.", which moves
kernel headers in ipt_osf.h into appropriate ifdef/endif?
--
Evgeniy Polyakov
Crash is better than data corruption -- Arthur Grabowski
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [1/1] ipt_osf: fix ipt_osf compilation on some distros.
2005-02-25 5:07 [1/1] ipt_osf: fix ipt_osf compilation on some distros Evgeniy Polyakov
@ 2005-02-27 16:32 ` Patrick McHardy
2005-02-27 17:10 ` Evgeniy Polyakov
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Patrick McHardy @ 2005-02-27 16:32 UTC (permalink / raw)
To: johnpol; +Cc: Harald Welte, netfilter-devel
Evgeniy Polyakov wrote:
> Some distros have magical header mess, which leads to undefined struct
> tcphdr,
> when net/tcp.h is not included directly.
> Following patch workarounds it.
You should include linux/tcp.h for struct tcphdr. You probably also
don't need the other net/ includes, for struct iphdr use linux/ip.h,
sock.h shouldn't be needed at all.
> Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
>
> --- orig/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c~ 2005-02-07
> 18:55:56.000000000 +0300
> +++orig/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c 2005-02-24
> 12:49:22.329311368 +0300
> @@ -47,6 +47,7 @@
>
> #include <net/sock.h>
> #include <net/ip.h>
> +#include <net/tcp.h>
>
> #include <linux/netfilter_ipv4/ip_tables.h>
>
>
> P.S. Should I resend lost patch with Subject line
> "[1/1] libipt_osf: fix iptables-1.3.0rc1 compilation.", which moves
> kernel headers in ipt_osf.h into appropriate ifdef/endif?
Yes, please.
Regards
Patrick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [1/1] ipt_osf: fix ipt_osf compilation on some distros.
2005-02-27 17:10 ` Evgeniy Polyakov
@ 2005-02-27 17:03 ` Patrick McHardy
2005-02-27 17:39 ` Evgeniy Polyakov
0 siblings, 1 reply; 8+ messages in thread
From: Patrick McHardy @ 2005-02-27 17:03 UTC (permalink / raw)
To: johnpol; +Cc: Harald Welte, netfilter-devel
Evgeniy Polyakov wrote:
> Both patches will be sent in 2 next e-mails.
Thanks. I'm having trouble accessing svn, I'll commit them when
it is working again.
Regards
Patrick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [1/1] ipt_osf: fix ipt_osf compilation on some distros.
2005-02-27 16:32 ` Patrick McHardy
@ 2005-02-27 17:10 ` Evgeniy Polyakov
2005-02-27 17:03 ` Patrick McHardy
2005-02-27 17:11 ` [1/2] ipt_osf: move kernel headers into appropriate ifdef/endif area Evgeniy Polyakov
2005-02-27 17:13 ` [2/2] ipt_osf: includes cleanup Evgeniy Polyakov
2 siblings, 1 reply; 8+ messages in thread
From: Evgeniy Polyakov @ 2005-02-27 17:10 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Harald Welte, netfilter-devel
On Sun, 27 Feb 2005 17:32:09 +0100
Patrick McHardy <kaber@trash.net> wrote:
> Evgeniy Polyakov wrote:
> > Some distros have magical header mess, which leads to undefined struct
> > tcphdr,
> > when net/tcp.h is not included directly.
> > Following patch workarounds it.
>
> You should include linux/tcp.h for struct tcphdr. You probably also
> don't need the other net/ includes, for struct iphdr use linux/ip.h,
> sock.h shouldn't be needed at all.
net/ip.h is needed due to IP_DF bit.
linux/sock.h is not needed but instead ipt_osf.c requires inetdevice.h
due to in_dev_get() usage.
> >
> > P.S. Should I resend lost patch with Subject line
> > "[1/1] libipt_osf: fix iptables-1.3.0rc1 compilation.", which moves
> > kernel headers in ipt_osf.h into appropriate ifdef/endif?
>
> Yes, please.
Both patches will be sent in 2 next e-mails.
> Regards
> Patrick
Evgeniy Polyakov
Only failure makes us experts. -- Theo de Raadt
^ permalink raw reply [flat|nested] 8+ messages in thread
* [1/2] ipt_osf: move kernel headers into appropriate ifdef/endif area.
2005-02-27 16:32 ` Patrick McHardy
2005-02-27 17:10 ` Evgeniy Polyakov
@ 2005-02-27 17:11 ` Evgeniy Polyakov
2005-02-27 17:13 ` [2/2] ipt_osf: includes cleanup Evgeniy Polyakov
2 siblings, 0 replies; 8+ messages in thread
From: Evgeniy Polyakov @ 2005-02-27 17:11 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Harald Welte, netfilter-devel
Move kernel headers into appropriate ifdef/endif area.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
--- orig/osf/linux-2.6/include/linux/netfilter_ipv4/ipt_osf.h 2005-02-07 19:11:08.237624320+0300
+++ mod/osf/linux-2.6/include/linux/netfilter_ipv4/ipt_osf.h 2005-02-07 19:11:43.854209776 +0300
@@ -33,9 +33,6 @@
#define IPT_OSF_LOGLEVEL_ALL 0
#define IPT_OSF_LOGLEVEL_FIRST 1
-#include <linux/list.h>
-#include <net/tcp.h>
-
#ifndef __KERNEL__
#include <netinet/ip.h>
#include <netinet/tcp.h>
@@ -98,6 +95,10 @@
#ifdef __KERNEL__
+#include <linux/list.h>
+#include <net/tcp.h>
+
+
/* Defines for IANA option kinds */
#define OSFOPT_EOL 0 /* End of options */
Evgeniy Polyakov
Only failure makes us experts. -- Theo de Raadt
^ permalink raw reply [flat|nested] 8+ messages in thread
* [2/2] ipt_osf: includes cleanup.
2005-02-27 16:32 ` Patrick McHardy
2005-02-27 17:10 ` Evgeniy Polyakov
2005-02-27 17:11 ` [1/2] ipt_osf: move kernel headers into appropriate ifdef/endif area Evgeniy Polyakov
@ 2005-02-27 17:13 ` Evgeniy Polyakov
2 siblings, 0 replies; 8+ messages in thread
From: Evgeniy Polyakov @ 2005-02-27 17:13 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Harald Welte, netfilter-devel
Includes cleanup.
ipt_osf requires inetdevice.h and tcp.h.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
--- orig/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c
+++ mod/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c
@@ -44,9 +44,9 @@
#include <linux/ctype.h>
#include <linux/list.h>
#include <linux/if.h>
-
-#include <net/sock.h>
+#include <linux/inetdevice.h>
#include <net/ip.h>
+#include <linux/tcp.h>
#include <linux/netfilter_ipv4/ip_tables.h>
Evgeniy Polyakov
Only failure makes us experts. -- Theo de Raadt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [1/1] ipt_osf: fix ipt_osf compilation on some distros.
2005-02-27 17:03 ` Patrick McHardy
@ 2005-02-27 17:39 ` Evgeniy Polyakov
2005-03-01 20:32 ` Patrick McHardy
0 siblings, 1 reply; 8+ messages in thread
From: Evgeniy Polyakov @ 2005-02-27 17:39 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Harald Welte, netfilter-devel
On Sun, 27 Feb 2005 18:03:02 +0100
Patrick McHardy <kaber@trash.net> wrote:
> Evgeniy Polyakov wrote:
> > Both patches will be sent in 2 next e-mails.
>
> Thanks. I'm having trouble accessing svn, I'll commit them when
> it is working again.
Thank you.
Please inform me, so I could commit it into my trees.
> Regards
> Patrick
Evgeniy Polyakov
Only failure makes us experts. -- Theo de Raadt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [1/1] ipt_osf: fix ipt_osf compilation on some distros.
2005-02-27 17:39 ` Evgeniy Polyakov
@ 2005-03-01 20:32 ` Patrick McHardy
0 siblings, 0 replies; 8+ messages in thread
From: Patrick McHardy @ 2005-03-01 20:32 UTC (permalink / raw)
To: johnpol; +Cc: Harald Welte, netfilter-devel
Evgeniy Polyakov wrote:
> On Sun, 27 Feb 2005 18:03:02 +0100
> Patrick McHardy <kaber@trash.net> wrote:
>>
>>Thanks. I'm having trouble accessing svn, I'll commit them when
>>it is working again.
>
> Please inform me, so I could commit it into my trees.
I've applied both patches to trunk and the 2.6.11 branch.
Regards
Patrick
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-03-01 20:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-25 5:07 [1/1] ipt_osf: fix ipt_osf compilation on some distros Evgeniy Polyakov
2005-02-27 16:32 ` Patrick McHardy
2005-02-27 17:10 ` Evgeniy Polyakov
2005-02-27 17:03 ` Patrick McHardy
2005-02-27 17:39 ` Evgeniy Polyakov
2005-03-01 20:32 ` Patrick McHardy
2005-02-27 17:11 ` [1/2] ipt_osf: move kernel headers into appropriate ifdef/endif area Evgeniy Polyakov
2005-02-27 17:13 ` [2/2] ipt_osf: includes cleanup Evgeniy Polyakov
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.