[Openswan Users] Klips patch

Paul Wouters paul at xelerance.com
Fri Mar 24 01:54:19 CET 2006


On Thu, 23 Mar 2006, ted leslie wrote:

> i just found that, for example,  struct sk_buff in 2.6.14+
> is different then in say 2.6.10 ... (list, stamp  fields for example)
> so it looks like the Klips patch labelled 2.4.4  can't be applied to
> a normal 2.6.14 or higher kernel, i am seeing about 2.6.12 now,
>
> in the comments in the patch, since i saw reference to high 2.6.13
> i figured 2.6.14 would be ok, but obviously not.

No. It should work fine, because there are defines for that located in
the file linux/include/openswan/ipsec_kversion.h

eg:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
/* skb->stamp changed to skb->tstamp in 2.6.14 */
#define HAVE_TSTAMP
#define HAVE_INET_SK_SPORT
#undef  SYSCTL_IPSEC_DEFAULT_TTL
#define SYSCTL_IPSEC_DEFAULT_TTL IPSEC_DEFAULT_TTL
#else
#define HAVE_SKB_LIST
#endif

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 Users mailing list