From: Thomas Egerer Date: Wed, 20 Mar 2013 09:18:43 +0000 (-0700) Subject: ip xfrm state: Allow different selector family X-Git-Tag: v3.9.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5982fd7f209604cd8be5d41d2e8b0527a3f279;p=thirdparty%2Fiproute2.git ip xfrm state: Allow different selector family My previous commit introduced a patch to allow for states with different ip address families for selector and id. The must have somehow been a mixup of the patch I tested and the one I send, so the patch sent breaks the iproute2 build. This patch fixes this. My apologies. Signed-off-by: Thomas Egerer --- diff --git a/ip/xfrm_state.c b/ip/xfrm_state.c index 6ff5b51fd..c0cf88c2f 100644 --- a/ip/xfrm_state.c +++ b/ip/xfrm_state.c @@ -296,7 +296,7 @@ static int xfrm_state_modify(int cmd, unsigned flags, int argc, char **argv) NEXT_ARG(); preferred_family = AF_UNSPEC; xfrm_selector_parse(&req.xsinfo.sel, &argc, &argv); - preferred_family = req.xsinfo.sel; + preferred_family = req.xsinfo.sel.family; } else if (strcmp(*argv, "limit") == 0) { NEXT_ARG(); xfrm_lifetime_cfg_parse(&req.xsinfo.lft, &argc, &argv);