[Openswan dev] openswan 2.4.7 broken with kernel 2.4 series
Matthias Haas
mh at pompase.net
Wed Nov 15 06:32:56 EST 2006
The patch #671 broke compatibility with 2.4 kernel series at compile time.
As both referenced structs do not have a owner field compilation fails.
It seems that 2.4.7 has never been tested with stock 2.4 kernels.
I am sorry that I did not test os 2.4.7 at the rc state.
Nevertheless this is the patch that should reconstruct 2.4 kernel
compatibility:
--- /var/src/openswan/openswan-2.4.7/linux/net/ipsec/pfkey_v2.c Tue Oct 10
22:43:28 2006
+++ /var/src/openswan/openswan-2.4.7-devel/linux/net/ipsec/pfkey_v2.c
Wed Nov 15 09:27:05 2006
@@ -119,7 +119,9 @@
#ifdef NETDEV_23
.family = PF_KEY,
.create = pfkey_create,
+#ifdef NET_26
.owner = THIS_MODULE,
+#endif
#else
PF_KEY,
pfkey_create
@@ -129,7 +131,9 @@
struct proto_ops SOCKOPS_WRAPPED(pfkey_ops) = {
#ifdef NETDEV_23
family: PF_KEY,
+#ifdef NET_26
owner: THIS_MODULE,
+#endif
release: pfkey_release,
bind: sock_no_bind,
connect: sock_no_connect,
Kind regards
the last 2.4 series user :-)
Matthias
More information about the Dev
mailing list