]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/xfrm_policy.c
ip xfrm: support setting/printing XFRMA_IF_ID attribute in states/policies
authorEyal Birger <eyal.birger@gmail.com>
Thu, 4 Apr 2019 16:07:38 +0000 (19:07 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 11 Apr 2019 22:26:43 +0000 (15:26 -0700)
commitaed63ae1acb9ab7acf9ef7dbd38ad465918d39ac
tree235ac9adabb18bbda2fc9db98318b47e735a1bbe
parent8391023680d0f0054a8894bb579220a7b9dffb0c
ip xfrm: support setting/printing XFRMA_IF_ID attribute in states/policies

The XFRMA_IF_ID attribute is set in policies/states for them to be
associated with an XFRM interface (4.19+).

Add support for setting / displaying this attribute.

Note that 0 is a valid value therefore set XFRMA_IF_ID if any value
was provided in command line.

Tested-by: Antony Antony <antony@phenome.org>
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipxfrm.c
ip/xfrm_policy.c
ip/xfrm_state.c