#include <netinet/mptcp_var.h>
netinet/mptcp_var.h Kernel.framework
12 macros · 6 structs · 3 typedefs
size 832, align 8
| uint64_t | mptcpci_len | |
| uint64_t | mptcpci_flow_offset | offsetof first flow |
| uint64_t | mptcpci_nflows | number of subflows |
| uint32_t | mptcpci_state | MPTCP level state |
| uint32_t | mptcpci_mpte_flags | Session flags |
| uint32_t | mptcpci_flags | MPTCB flags |
| uint32_t | mptcpci_ltoken | local token |
| uint32_t | mptcpci_rtoken | remote token |
| uint32_t | mptcpci_notsent_lowat | NOTSENT_LOWAT |
| uint64_t | mptcpci_snduna | Send side DSN of last unacked byte |
| uint64_t | mptcpci_sndnxt | DSN of next byte to send |
| uint64_t | mptcpci_sndmax | DSN of max byte sent |
| uint64_t | mptcpci_lidsn | Local IDSN |
| uint32_t | mptcpci_sndwnd | Send window snapshot |
| uint64_t | mptcpci_rcvnxt | Receive side Next expected DSN |
| uint64_t | mptcpci_ridsn | Peer's IDSN |
| uint32_t | mptcpci_rcvwnd | Receive window |
| uint8_t | mptcpci_mpte_addrid | last addr id |
| mptcp_flow_t[1] | mptcpci_flows | |
Use SymptomsD notifications of wifi and cell status in subflow selection
#define MPTCP_KERN_CTL_NAME "com.apple.network.advisory"
#define SYMPTOMS_ADVISORY_USEAPP 0xFFFF
Very ugly workaround to avoid breaking backwards compatibility - ToDo: Fix it in +1
#define SYMPTOMS_ADVISORY_WIFI_BAD 0x01
#define SYMPTOMS_ADVISORY_WIFI_OK 0x02
#define SYMPTOMS_ADVISORY_CELL_BAD 0x01
#define SYMPTOMS_ADVISORY_CELL_OK 0x02
size 24, align 4
| uint32_t | cmd | |
| uuid_t | uuid | |
| uint32_t | priority | |
#define MPTCP_SYMPTOMS_ASK_UUID 1
#define MPTCP_SYMPTOMS_UNKNOWN 0
#define MPTCP_SYMPTOMS_BACKGROUND 1
#define MPTCP_SYMPTOMS_FOREGROUND 2