History

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).

Dmitry Safonov committed 3 years ago

Commit 7753c2f1 parent 953af8e2 files · +10 −3Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/tcp.h+5−0
@@ -367,6 +367,11 @@ struct tcp_diag_md5sig { · 366 unmodified lines
367367 #define TCP_AO_MAXKEYLEN 80
368368
369369 #define TCP_AO_KEYF_IFINDEX (1 << 0) /* L3 ifindex for VRF */
370+#define TCP_AO_KEYF_EXCLUDE_OPT (1 << 1) /* "Indicates whether TCP
371+ * options other than TCP-AO
372+ * are included in the MAC
373+ * calculation"
374+ */
370375
371376 struct tcp_ao_add { /* setsockopt(TCP_AO_ADD_KEY) */
372377 struct __kernel_sockaddr_storage addr; /* peer's address for the key */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t