From ce01d9e1027a673721fde79069ddcb50fc682111 Mon Sep 17 00:00:00 2001 From: Shinta Sugimoto Date: Sun, 29 Jul 2007 16:47:24 +0900 Subject: [PATCH] [BUGFIX] HA: Fix IPsec forwarding policy selector. On IPsec tunnel usage with "HomeRegBinding" at HA, its forwarding policy selector should have MH type i.e. HoTI. This patch fix it. --- src/ipsec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ipsec.c b/src/ipsec.c index 9f70077..d038c69 100644 --- a/src/ipsec.c +++ b/src/ipsec.c @@ -105,7 +105,7 @@ static void _set_sp(struct xfrm_userpoli switch (e->type) { case IPSEC_POLICY_TYPE_TUNNELHOMETESTING: - if (dir == XFRM_POLICY_IN) { + if (dir == XFRM_POLICY_IN || dir == XFRM_POLICY_FWD) { if (nodetype == MIP6_ENTITY_MN) { sp->sel.sport = htons(IP6_MH_TYPE_HOT); sp->sel.sport_mask = ~((__u16)0); -- 1.4.3.GIT