kernel versioning

Paul Wouters paul at cypherpunks.ca
Sat Mar 11 19:29:32 UTC 2006


On Sat, 11 Mar 2006, dragoran wrote:

> > > Any thoughts on how to make everyone happy? :)
> >
> > I have no idea :(
> >
> > Paul
> >
> A solution is not to check the kernel version but to check for features/apis
> they need.
> the (closed) nvidia driver does this for the wrapper part and it seems to work
> fine.

That does not work when cross compiling.

Tell me how to properly check for the changed skb structures without using
versions or compiling code. Perhaps these changed should set defines that
do not rely on kernel versions. We now had to make our own defines which we
then set in the spec file. They are also versioned, but for fedora we need
to override these in the spec file. So far we already have:

HAVE_SOCK_ZAPPED
NET_26_12_SKALLOC
HAVE_SOCK_SECURITY
HAVE_SKB_NF_DEBUG
SYSCTL_IPSEC_DEFAULT_TTL
HAVE_TSTAMP
HAVE_INET_SK_SPORT

Unfortunately, I really have no idea how to better do this, unless fedora
ships some kernel header so at least all software projects could just
re-use the same defines and all projects wouldn't have to re-invent the
wheel. Because so far, we usually find out only after a kernel api broke.

Better documentation about these would be appreciated.

Paul
-- 
Building and integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155




More information about the devel mailing list