[Openswan dev] [PATCH] Source changes required to build KLIPS on 2.6

Nate Carlson natecars at natecarlson.com
Mon Jun 28 15:41:15 CEST 2004

On Mon, 28 Jun 2004, Ferdinand O. Tempel wrote:
> Well, Nate, if it makes you happy, I replayed all your steps too, and I
> got a nice ipsec connection going with KLIPS. As proof, I attached a
> barf :P
> When I first tried I couldn't get things to compile as it missed source
> files. Then I figured out you're supposed to run move-files *and*
> move-files-2 (D'oh!). So after I did that, the module built just fine.
> It also loaded just fine, and my test connection comes up fine. So, you
> can take pride in your hard work, you now have at least one success
> report.

Glad to hear you got it working! Yeah, I added the second set of files to 
move later, when I figured out I hadn't enabled ipcomp.

> Also attached you'll find a patch to your Makefile which removes the
> hardcoded paths. Of course it assumes you want to build the module for
> the running 2.6 kernel :P If that is not the case, a method should be
> devised to use KERNELSRC from the toplevel Makefile.inc. But that's
> integration work, later.

Yeah, that makefile is a total hack - I'm really not a programmer, so I
just kludged something together to get it working. Thanks for the patch,
though - makes things easier until someone who knows what they are doing
with the build system can take a look at it.  :)

If you happen to be a programmer, and want to take a look at it, there is
still a problem with NAT Traversal compiling, because of some structural
changes in 2.6 (specifically, tp_pinfo has been removed). If you want to
try this out, just uncomment the line referring to NAT_TRAVERSAL in the

| nate carlson | natecars at natecarlson.com | http://www.natecarlson.com |
|       depriving some poor village of its idiot since 1981            |

More information about the Dev mailing list