[Openswan dev] [Patch] Changes to pfkey_v2.c to make it compile with kernel 2.4

Rene Mayrhofer rene.mayrhofer at gibraltar.at
Tue Oct 4 14:26:33 CEST 2005


Hi all,

Here is a small patch to make pfkey_v2.c compile with a kernel 2.4 tree. I 
hope that pfkey_lock_sock (which isn't available in 2.4) is not needed in 
these cases.

--- linux/net/ipsec/pfkey_v2.c  (Revision 74)
+++ linux/net/ipsec/pfkey_v2.c  (Arbeitskopie)
@@ -821,7 +821,9 @@
                return 0; /* -EINVAL; */
        }

+#ifdef NET_26
        write_lock_bh(&pfkey_sock_lock);
+#endif

        KLIPS_PRINT(debug_pfkey,
                    "klips_debug:pfkey_release: "
@@ -852,7 +854,9 @@
                    "klips_debug:pfkey_release: "
                    "succeeded.\n");

+#ifdef NET_26
        write_unlock_bh(&pfkey_sock_lock);
+#endif

        return 0;
 }


with best regards,
Rene
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.openswan.org/pipermail/dev/attachments/20051004/7fe00915/attachment.bin


More information about the Dev mailing list