[Openswan dev] [PATCH 1/2] ESP_NULL support: pluto with netlink: consider enckeylen==0 special case
JuanJo Ciarlante
jjo-ipsec at mendoza.gov.ar
Mon Sep 25 09:14:35 EDT 2006
Signed-off-by: JuanJo Ciarlante <jjo at mendoza.gov.ar>
---
programs/pluto/kernel_netlink.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/programs/pluto/kernel_netlink.c b/programs/pluto/kernel_netlink.c
index 66a015f..6ed4ad6 100644
--- a/programs/pluto/kernel_netlink.c
+++ b/programs/pluto/kernel_netlink.c
@@ -630,7 +630,10 @@ netlink_add_sa(const struct kernel_sa *s
attr = (struct rtattr *)((char *)attr + attr->rta_len);
}
- if (sa->enckeylen)
+ /* Consider ESP_NULL particular case (enckeylen==0),
+ * makes pluto correctly drive linux-2.6 ESP_NULL --jjo, 09/21/06
+ */
+ if (sa->enckeylen || sa->encalg==SADB_EALG_NULL)
{
struct xfrm_algo algo;
const char *name;
--
1.4.2
--
--Juanjo
# Juan Jose Ciarlante (JuanJo) jjo ;at; mendoza.gov.ar #
# GnuPG Public Key: gpg --keyserver wwwkeys.eu.pgp.net --recv-key 66727177 #
# Key fingerprint: 0D2F 3E5D 8B5C 729E 0560 F453 A3F7 E249 6672 7177 #
More information about the Dev
mailing list