Skip to content

Commit 4802521

Browse files
committed
include: update MPTCP upstream headers
Some new defines related to MPTCP_INFO and EV flags, and switch to _BITUL(). Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent 2058b80 commit 4802521

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

include/linux/mptcp_upstream.h

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,37 @@
3131
#define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
3232
#define MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED _BITUL(1)
3333

34-
#define MPTCP_PM_ADDR_FLAG_SIGNAL (1 << 0)
35-
#define MPTCP_PM_ADDR_FLAG_SUBFLOW (1 << 1)
36-
#define MPTCP_PM_ADDR_FLAG_BACKUP (1 << 2)
37-
#define MPTCP_PM_ADDR_FLAG_FULLMESH (1 << 3)
38-
#define MPTCP_PM_ADDR_FLAG_IMPLICIT (1 << 4)
34+
#define MPTCP_PM_EV_FLAG_DENY_JOIN_ID0 _BITUL(0)
35+
#define MPTCP_PM_EV_FLAG_SERVER_SIDE _BITUL(1)
36+
37+
#define MPTCP_PM_ADDR_FLAG_SIGNAL _BITUL(0)
38+
#define MPTCP_PM_ADDR_FLAG_SUBFLOW _BITUL(1)
39+
#define MPTCP_PM_ADDR_FLAG_BACKUP _BITUL(2)
40+
#define MPTCP_PM_ADDR_FLAG_FULLMESH _BITUL(3)
41+
#define MPTCP_PM_ADDR_FLAG_IMPLICIT _BITUL(4)
3942

4043
struct mptcp_info {
4144
__u8 mptcpi_subflows;
45+
#define mptcpi_extra_subflows mptcpi_subflows
4246
__u8 mptcpi_add_addr_signal;
4347
__u8 mptcpi_add_addr_accepted;
4448
__u8 mptcpi_subflows_max;
49+
#define mptcpi_limit_extra_subflows mptcpi_subflows_max
4550
__u8 mptcpi_add_addr_signal_max;
51+
#define mptcpi_endp_signal_max mptcpi_add_addr_signal_max
4652
__u8 mptcpi_add_addr_accepted_max;
53+
#define mptcpi_limit_add_addr_accepted mptcpi_add_addr_accepted_max
54+
/* 16-bit hole that can no longer be filled */
4755
__u32 mptcpi_flags;
4856
__u32 mptcpi_token;
4957
__u64 mptcpi_write_seq;
5058
__u64 mptcpi_snd_una;
5159
__u64 mptcpi_rcv_nxt;
5260
__u8 mptcpi_local_addr_used;
5361
__u8 mptcpi_local_addr_max;
62+
#define mptcpi_endp_subflow_max mptcpi_local_addr_max
5463
__u8 mptcpi_csum_enabled;
64+
/* 8-bit hole that can no longer be filled */
5565
__u32 mptcpi_retransmits;
5666
__u64 mptcpi_bytes_retrans;
5767
__u64 mptcpi_bytes_sent;

0 commit comments

Comments
 (0)