]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/xfrm_state.c
xfrm_{state, policy}: Allow to deleteall polices/states with marks
authorThomas Egerer <thomas.egerer@secunet.com>
Mon, 30 Oct 2017 18:11:46 +0000 (19:11 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 7 Nov 2017 02:12:30 +0000 (11:12 +0900)
commit0c7d651b38d6ad5a2538aef21560cad6fe90f683
treeeb8e8c6d0a67204b441c4c32ed9d5215975136c3
parent5474d440b8a26b30104329d699217c87d34652ad
xfrm_{state, policy}: Allow to deleteall polices/states with marks

Using 'ip deleteall' with policies that have marks, fails unless you
eplicitely specify the mark values. This is very uncomfortable when
bulk-deleting policies and states. With this patch all relevant states
and policies are wiped by 'ip deleteall' regardless of their mark
values.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
ip/xfrm_policy.c
ip/xfrm_state.c