From a01289108208a300e44e101c6d6ecff782b594bd Mon Sep 17 00:00:00 2001
From: Shinta Sugimoto <shinta@sfc.wide.ad.jp>
Date: Sun, 11 Feb 2007 08:20:07 +0900
Subject: [KERNELIF] IPSEC: Fix to use MIGRATE structure on the mainline kernel.

---
 src/ipsec.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/ipsec.c b/src/ipsec.c
index 449622c..aaee7cf 100644
--- a/src/ipsec.c
+++ b/src/ipsec.c
@@ -109,7 +109,9 @@ static int xfrm_sendmigrate(struct xfrm_userpolicy_info *sp,
         req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.m));
         req.n.nlmsg_flags = NLM_F_REQUEST;
         req.n.nlmsg_type = XFRM_MSG_MIGRATE;
-        req.m.family = sp->sel.family;
+	req.m.old_family = AF_INET6;
+	req.m.new_family = AF_INET6;
+
 	req.m.proto = tmpl->id.proto;
 	req.m.mode = tmpl->mode;
 	req.m.reqid = tmpl->reqid;
-- 
1.5.0.3

