net/tcp: Add option for TCP-AO to (not) hash header
Provide setsockopt() key flag that makes TCP-AO exclude hashing TCP header for peers that match the key. This is needed for interraction with middleboxes that may change TCP options, see RFC5925 (9.2). Co-developed-by: Francesco Ruggeri <fruggeri@arista.com> Signed-off-by: Francesco Ruggeri <fruggeri@arista.com> Co-developed-by: Salam Noureddine <noureddine@arista.com> Signed-off-by: Salam Noureddine <noureddine@arista.com> Signed-off-by: Dmitry Safonov <dima@arista.com> Acked-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
953af8e3ac
commit
7753c2f0a8
2 changed files with 10 additions and 3 deletions
|
|
@ -367,6 +367,11 @@ struct tcp_diag_md5sig {
|
|||
#define TCP_AO_MAXKEYLEN 80
|
||||
|
||||
#define TCP_AO_KEYF_IFINDEX (1 << 0) /* L3 ifindex for VRF */
|
||||
#define TCP_AO_KEYF_EXCLUDE_OPT (1 << 1) /* "Indicates whether TCP
|
||||
* options other than TCP-AO
|
||||
* are included in the MAC
|
||||
* calculation"
|
||||
*/
|
||||
|
||||
struct tcp_ao_add { /* setsockopt(TCP_AO_ADD_KEY) */
|
||||
struct __kernel_sockaddr_storage addr; /* peer's address for the key */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue