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 &lt;linux/in6.h&gt;</div><div>+#include &lt;linux/netdevice.h&gt;</div><div>+#include &lt;net/if_inet6.h&gt;</div><div>+#include &lt;net/ipv6.h&gt;</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 &lt;linux/in6.h&gt;</div><div>-#include &lt;linux/netdevice.h&gt;</div><div>-#include &lt;net/if_inet6.h&gt;</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 &lt; KERNEL_VERSION(2,6,0)</div>
<div> # ifndef module_param</div><div>-#  define module_param(a,b,c)  MODULE_PARM(#a,&quot;i&quot;)</div><div>+#  define module_param(a,b,c)  MODULE_PARM(a,&quot;i&quot;)</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,&quot;1-2i&quot;)</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 &lt;linux/spinlock.h&gt;</div>
<div>+#include &lt;linux/threads.h&gt;</div><div> #include &lt;linux/interrupt.h&gt;</div><div> #include &lt;net/addrconf.h&gt;</div><div> #define ip6_chk_addr(a) (ipv6_chk_addr(&amp;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 &lt;asm/types.h&gt;</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>