]> git.proxmox.com Git - mirror_iproute2.git/commit
ip-xfrm: Respect family in deleteall and list commands
authorPhil Sutter <phil@nwl.cc>
Mon, 6 May 2019 17:09:56 +0000 (19:09 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 6 May 2019 20:32:44 +0000 (13:32 -0700)
commitcd21ae40130b4d1ddb3ef500800840e35e7bfad1
tree81becf98795a9242da7f1632e9adbba877516ac0
parent9bf2c538a0eb10d66e2365a655bf6c52f5ba3d10
ip-xfrm: Respect family in deleteall and list commands

Allow to limit 'ip xfrm {state|policy} list' output to a certain address
family and to delete all states/policies by family.

Although preferred_family was already set in filters, the filter
function ignored it. To enable filtering despite the lack of other
selectors, filter.use has to be set if family is not AF_UNSPEC.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/xfrm_policy.c
ip/xfrm_state.c
man/man8/ip-xfrm.8