[Openswan Users] Patch compile problem with KLIPS

Paul Wouters paul at xelerance.com
Sat Feb 5 16:54:14 CET 2005


On Fri, 4 Feb 2005, Gary W. Smith wrote:

> I've been trying to compile klips into RHEL 3 (2.4.21-27) to no avail.  I have added the patch but it seems to be refering to a variable on a struct that doesn't exist.

The problem is that RHEL kernels are a hybrid of 2.4 and 2.6. You will have
to check out the code between the NET_26 defines.

> Afflictted code fragment is:
>
> +               for (esp = (struct inet_protocol *)inet_protos[IPPROTO_ESP & (MAX_INET_PROTOS - 1)];
> +                       (esp) && (esp->protocol != IPPROTO_ESP);
> +                       esp = esp->next);

Part of the inet structures changed between 2.4 and 2.6. And only some
of it has been changed in the RHEL hybrid.

Basicly, the NET_26 has to be split up in multiple defines for this. It will
require some work which is not a high priority for us at this point, since we
assume RHEL will move to real 2.6 kernels. We ofcourse would welcome a patch
or other contirbutions if people really need KLIPS to work on the RHEL hybrids.

Paul
-- 

"At best it is a theory, at worst a fantasy" -- Michael Crichton



More information about the Users mailing list