login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
21
Re: include/linux/netfilter.h after make headers_install is incomplete
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Patrick McHardy <kaber@...>
To: Sam Ravnborg <sam@...>
Cc: David Miller <davem@...>, <greg@...>, <linux-kernel@...>, <netfilter-devel@...>
Subject:
Re: include/linux/netfilter.h after make headers_install is incomplete
Date: Wednesday, May 21, 2008 - 6:31 am
Sam Ravnborg wrote:
quoted text
> On Wed, May 21, 2008 at 11:56:55AM +0200, Patrick McHardy wrote: >> David Miller wrote: >>> From: "Greg Steuck" <greg@nest.cx> >>> Date: Tue, 20 May 2008 11:44:56 -0700 >>> >>>> I ran make headers_install in 2.6.25 tree and the installed netfilter.h is >>>> not complete. Namely, it declares >>>> union nf_inet_addr { >>>> __u32 all[4]; >>>> __be32 ip; >>>> __be32 ip6[4]; >>>> ... >>>> } >>>> >>>> The __u32, __be32 types are declared in <linux/types.h> and the #include >>>> directive is removed by the installation process. This in turn makes some >>>> applications unbuildable against such an exported tree, e.g. >>>> >>>> busybox-1.10.1/networking/tcpudp.c:#include <linux/netfilter_ipv4.h> >>>> >>>> If I correctly understand the purpose of make headers_install, it is >>>> supposed to generate an API for applications. I could certainly >>>> make tcpudp.c include linux/types.h, but given that the application >>>> does not even use nf_inet_addr, this would be the wrong place for >>>> the fix. >> These types are used by countless header files. I don't know >> why types.h is stripped, I guess this question can be best >> answered by whoever maintains the header-install stuff (Sam? >> I don't know). > > Everything inside > #ifdef __KERNEL__ > ... > #endif > > are stripped.
I didn't notice the ifdef around the include statement, this makes sense of course. I'll fix it up, thanks Sam. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Fwd: include/linux/netfilter.h after make headers_install is...
, Greg Steuck
, (Tue May 20, 2:44 pm)
Re: include/linux/netfilter.h after make headers_install is ...
, David Miller
, (Tue May 20, 5:21 pm)
Re: include/linux/netfilter.h after make headers_install is ...
, Patrick McHardy
, (Wed May 21, 5:56 am)
Re: include/linux/netfilter.h after make headers_install is ...
, Sam Ravnborg
, (Wed May 21, 6:04 am)
Re: include/linux/netfilter.h after make headers_install is ...
, Patrick McHardy
, (Wed May 21, 6:31 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Heiko Carstens
Re: -mm merge plans for 2.6.23 -- sys_fallocate
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Jarek Poplawski
[PATCH iproute2] Re: HTB accuracy for high speed
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
615 guests
online.
Online users
strcmp
xpertlando
lovely16
runrunrun12
Syndicate