diff options
author | 2024-04-30 09:08:52 +0200 | |
---|---|---|
committer | 2024-05-01 10:05:11 +0200 | |
commit | a4a87fa4e96c7746e009de06a567688fd9af6013 (patch) | |
tree | 6d37f9d613320a65c2c79166d7611a28632eff21 /include/net/xfrm.h | |
parent | udpencap: Remove Obsolete UDP_ENCAP_ESPINUDP_NON_IKE Support (diff) | |
download | linux-a4a87fa4e96c7746e009de06a567688fd9af6013.tar.gz linux-a4a87fa4e96c7746e009de06a567688fd9af6013.tar.bz2 linux-a4a87fa4e96c7746e009de06a567688fd9af6013.zip |
xfrm: Add Direction to the SA in or out
This patch introduces the 'dir' attribute, 'in' or 'out', to the
xfrm_state, SA, enhancing usability by delineating the scope of values
based on direction. An input SA will restrict values pertinent to input,
effectively segregating them from output-related values.
And an output SA will restrict attributes for output. This change aims
to streamline the configuration process and improve the overall
consistency of SA attributes during configuration.
This feature sets the groundwork for future patches, including
the upcoming IP-TFS patch.
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 57c743b7e4fe..7c9be06f8302 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -291,6 +291,7 @@ struct xfrm_state { /* Private data of this transformer, format is opaque, * interpreted by xfrm_type methods. */ void *data; + u8 dir; }; static inline struct net *xs_net(struct xfrm_state *x) |