diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2022-03-14 11:38:22 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2022-03-18 07:23:12 +0100 |
commit | b58b1f563ab78955d37e9e43e02790a85c66ac05 (patch) | |
tree | d01fe8c020acf8556b7528f026796b328a019b80 /include/net/netns | |
parent | xfrm: delete duplicated functions that calls same xfrm_api_check() (diff) | |
download | linux-b58b1f563ab78955d37e9e43e02790a85c66ac05.tar.xz linux-b58b1f563ab78955d37e9e43e02790a85c66ac05.zip |
xfrm: rework default policy structure
This is a follow up of commit f8d858e607b2 ("xfrm: make user policy API
complete"). The goal is to align userland API to the internal structures.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/xfrm.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 947733a639a6..bd7c3be4af5d 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h @@ -66,11 +66,7 @@ struct netns_xfrm { int sysctl_larval_drop; u32 sysctl_acq_expires; - u8 policy_default; -#define XFRM_POL_DEFAULT_IN 1 -#define XFRM_POL_DEFAULT_OUT 2 -#define XFRM_POL_DEFAULT_FWD 4 -#define XFRM_POL_DEFAULT_MASK 7 + u8 policy_default[XFRM_POLICY_MAX]; #ifdef CONFIG_SYSCTL struct ctl_table_header *sysctl_hdr; |