aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorAntony Antony <antony@phenome.org>2017-06-06 12:12:14 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2017-06-07 08:35:54 +0200
commit8bafd73093f2f431f5a363f8057abc0ccc118853 (patch)
tree20af3529dd452d18819bbef145e0de1f37caa261 /net/xfrm/xfrm_policy.c
parentxfrm: extend MIGRATE with UDP encapsulation port (diff)
downloadlinux-dev-8bafd73093f2f431f5a363f8057abc0ccc118853.tar.xz
linux-dev-8bafd73093f2f431f5a363f8057abc0ccc118853.zip
xfrm: add UDP encapsulation port in migrate message
Add XFRMA_ENCAP, UDP encapsulation port, to km_migrate announcement to userland. Only add if XFRMA_ENCAP was in user migrate request. Signed-off-by: Antony Antony <antony@phenome.org> Reviewed-by: Richard Guy Briggs <rgb@tricolour.ca> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index d47f055ca90e..e6141891d23c 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -3384,7 +3384,7 @@ int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
}
/* Stage 5 - announce */
- km_migrate(sel, dir, type, m, num_migrate, k);
+ km_migrate(sel, dir, type, m, num_migrate, k, encap);
xfrm_pol_put(pol);