From 58771e5e8c45c7ec4fd23f5f9a353b46c40a5387 Mon Sep 17 00:00:00 2001 From: Masafumi Aramoto Date: Mon, 30 Jul 2007 18:37:32 +0900 Subject: [PATCH] [BUGFIX]: Failed to delete policy when MN terminates It's from ifindex problem. After sending dereg BU, MN tried to delete "MN to HA" outbound policy twice (first: iif=tunnel, seconf: iif=any) in _mn_bule_ro_pol_del. Second policy delete was failed, because the ifindex function has already spoiled. --- src/xfrm.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/src/xfrm.c b/src/xfrm.c index 3f496de..9cb1709 100644 --- a/src/xfrm.c +++ b/src/xfrm.c @@ -1213,13 +1213,6 @@ #endif static void _mn_bule_ro_pol_del(struct bulentry *e, int iif) { struct xfrm_selector sel; - set_selector(&e->peer_addr, &e->hoa, 0, 0, 0, iif, &sel); - xfrm_mip_policy_del(&sel, XFRM_POLICY_OUT); - - /* - * XXX: Trying to delete RO policy which is added by - * xfrm_post_ba_mod_bule() - */ set_selector(&e->peer_addr, &e->hoa, 0, 0, 0, 0, &sel); xfrm_mip_policy_del(&sel, XFRM_POLICY_OUT); -- 1.4.3.GIT