Currently xfrm_do_migrate only support migrating IP address. This patches add UDP encapsulation port to xfrm_do_migrate.
The use case is for devices such as phones that support IKE MOBIKE. Often when the device move from one network to the another or wake up from sleep external NAT gateway IP address, port, or both could change. With this patch xfrm_do_migrate will also support port change if necessary. Antony Antony (2): xfrm: extend MIGRATE with UDP encapsulation port xfrm: add UDP encapsulation port in migrate message include/net/xfrm.h | 11 +++++++---- net/key/af_key.c | 5 +++-- net/xfrm/xfrm_policy.c | 13 +++++-------- net/xfrm/xfrm_state.c | 23 ++++++++++++++++------- net/xfrm/xfrm_user.c | 37 +++++++++++++++++++++++++++++-------- 5 files changed, 60 insertions(+), 29 deletions(-) -- 2.9.3