I did successfully compile openswan 2.6.33 with kernel 2.4.37.9, in order to achieve that I had to create this patch:<div><br></div><div><div>--- a/include/net/addrconf.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-23 12:50:55.000000000 -0500</div>
<div>+++ b/include/net/addrconf.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-23 12:51:26.000000000 -0500</div><div>@@ -8,6 +8,15 @@</div><div><br></div><div> #define ADDR_CHECK_FREQUENCY<span class="Apple-tab-span" style="white-space:pre">                </span>(120*HZ)</div>
<div><br></div><div>+#ifdef __KERNEL__</div><div>+</div><div>+#include <linux/in6.h></div><div>+#include <linux/netdevice.h></div><div>+#include <net/if_inet6.h></div><div>+#include <net/ipv6.h></div>
<div>+</div><div>+#endif</div><div>+</div><div> struct prefix_info {</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>__u8<span class="Apple-tab-span" style="white-space:pre">                        </span>type;</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>__u8<span class="Apple-tab-span" style="white-space:pre">                        </span>length;</div><div>@@ -34,10 +43,6 @@</div><div><br></div><div> #ifdef __KERNEL__</div><div><br>
</div><div>-#include <linux/in6.h></div><div>-#include <linux/netdevice.h></div><div>-#include <net/if_inet6.h></div><div>-</div><div> #define IN6_ADDR_HSIZE<span class="Apple-tab-span" style="white-space:pre">                </span>16</div>
<div><br></div><div> extern void<span class="Apple-tab-span" style="white-space:pre">                        </span>addrconf_init(void);</div><div>--- a/include/openswan/ipsec_kversion.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-23 12:50:55.000000000 -0500</div>
<div>+++ b/include/openswan/ipsec_kversion.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-23 12:51:02.000000000 -0500</div><div>@@ -187,7 +187,7 @@</div><div> */</div><div> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)</div>
<div> # ifndef module_param</div><div>-# define module_param(a,b,c) MODULE_PARM(#a,"i")</div><div>+# define module_param(a,b,c) MODULE_PARM(a,"i")</div><div> # endif</div><div> /* note below is only true for our current calls to module_param_array */</div>
<div> # define module_param_array(a,b,c,d) MODULE_PARM(#a,"1-2i")</div><div>--- a/include/openswan/ipsec_kversion.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-24 08:20:58.000000000 -0500</div>
<div>+++ b/include/openswan/ipsec_kversion.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-24 09:30:29.000000000 -0500</div><div>@@ -357,6 +357,7 @@</div><div> #endif</div><div><br></div><div> #include <linux/spinlock.h></div>
<div>+#include <linux/threads.h></div><div> #include <linux/interrupt.h></div><div> #include <net/addrconf.h></div><div> #define ip6_chk_addr(a) (ipv6_chk_addr(&init_net, a, NULL, 1) ? IS_MYADDR : 0)</div>
<div>--- a/include/linux/sha1.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-23 13:19:40.000000000 -0500</div><div>+++ b/include/linux/sha1.h<span class="Apple-tab-span" style="white-space:pre">        </span>2011-02-09 08:19:23.000000000 -0500</div>
<div>@@ -16,6 +16,8 @@</div><div> #ifndef _SHA1_H_</div><div> #define _SHA1_H_</div><div><br></div><div>+#include <asm/types.h></div><div>+</div><div> typedef struct</div><div> {</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>__u32<span class="Apple-tab-span" style="white-space:pre">        </span>state[5];</div>
<div><br></div>-- <br>Yannick Koehler <br>Courriel: <a href="mailto:yannick@koehler.name">yannick@koehler.name</a><br><br>
</div>