All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/netfilter.h after make headers_install is incomplete
@ 2008-05-16 22:21 Greg Steuck
       [not found] ` <a27c0c970805201139i38e12d15ue807fc0239b1c10e@mail.gmail.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Greg Steuck @ 2008-05-16 22:21 UTC (permalink / raw)
  To: netfilter

Hello,

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.

Is kernel the right place then?

Thanks
Greg
-- 
nest.cx is Gmail hosted, use PGP for anything private. Key:
http://tinyurl.com/ho8qg
Fingerprint: 5E2B 2D0E 1E03 2046 BEC3  4D50 0B15 42BD 8DF5 A1B0

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

end of thread, other threads:[~2008-05-21 21:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 22:21 include/linux/netfilter.h after make headers_install is incomplete Greg Steuck
     [not found] ` <a27c0c970805201139i38e12d15ue807fc0239b1c10e@mail.gmail.com>
2008-05-20 18:44   ` Fwd: " Greg Steuck
2008-05-20 21:21     ` David Miller
2008-05-21  9:56       ` Patrick McHardy
2008-05-21 10:04         ` Sam Ravnborg
2008-05-21 10:31           ` Patrick McHardy
2008-05-21 10:58       ` Patrick McHardy
2008-05-21 20:56         ` Greg Steuck
2008-05-21 21:08           ` David Miller

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.