import G965FXXU7DTAA OSRC
*First release for Android (Q). Signed-off-by: FAROVITUS <farovitus@gmail.com>
This commit is contained in:
parent
856452b4f2
commit
2b92eefa41
7696 changed files with 3763754 additions and 92661 deletions
|
@ -17,7 +17,17 @@
|
|||
#ifndef _UAPI_LINUX_TCP_H
|
||||
#define _UAPI_LINUX_TCP_H
|
||||
|
||||
#ifndef CONFIG_MPTCP
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MPTCP
|
||||
#ifndef __KERNEL__
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include <linux/in.h>
|
||||
#include <linux/in6.h>
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
#include <asm/byteorder.h>
|
||||
#include <linux/socket.h>
|
||||
|
||||
|
@ -117,6 +127,14 @@ enum {
|
|||
#define TCP_SAVED_SYN 28 /* Get SYN headers recorded for connection */
|
||||
#define TCP_REPAIR_WINDOW 29 /* Get/set window parameters */
|
||||
#define TCP_FASTOPEN_CONNECT 30 /* Attempt FastOpen with connect */
|
||||
#ifdef CONFIG_MPTCP
|
||||
#define MPTCP_ENABLED 42
|
||||
#define MPTCP_SCHEDULER 43
|
||||
#define MPTCP_PATH_MANAGER 44
|
||||
#define MPTCP_INFO 45
|
||||
|
||||
#define MPTCP_INFO_FLAG_SAVE_MASTER 0x01
|
||||
#endif
|
||||
|
||||
struct tcp_repair_opt {
|
||||
__u32 opt_code;
|
||||
|
@ -217,6 +235,54 @@ struct tcp_info {
|
|||
__u64 tcpi_delivery_rate;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_MPTCP
|
||||
struct mptcp_meta_info {
|
||||
__u8 mptcpi_state;
|
||||
__u8 mptcpi_retransmits;
|
||||
__u8 mptcpi_probes;
|
||||
__u8 mptcpi_backoff;
|
||||
|
||||
__u32 mptcpi_rto;
|
||||
__u32 mptcpi_unacked;
|
||||
|
||||
/* Times. */
|
||||
__u32 mptcpi_last_data_sent;
|
||||
__u32 mptcpi_last_data_recv;
|
||||
__u32 mptcpi_last_ack_recv;
|
||||
|
||||
__u32 mptcpi_total_retrans;
|
||||
|
||||
__u64 mptcpi_bytes_acked; /* RFC4898 tcpEStatsAppHCThruOctetsAcked */
|
||||
__u64 mptcpi_bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived */
|
||||
};
|
||||
|
||||
struct mptcp_sub_info {
|
||||
union {
|
||||
struct sockaddr src;
|
||||
struct sockaddr_in src_v4;
|
||||
struct sockaddr_in6 src_v6;
|
||||
};
|
||||
|
||||
union {
|
||||
struct sockaddr dst;
|
||||
struct sockaddr_in dst_v4;
|
||||
struct sockaddr_in6 dst_v6;
|
||||
};
|
||||
};
|
||||
|
||||
struct mptcp_info {
|
||||
__u32 tcp_info_len; /* Length of each struct tcp_info in subflows pointer */
|
||||
__u32 sub_len; /* Total length of memory pointed to by subflows pointer */
|
||||
__u32 meta_len; /* Length of memory pointed to by meta_info */
|
||||
__u32 sub_info_len; /* Length of each struct mptcp_sub_info in subflow_info pointer */
|
||||
__u32 total_sub_info_len; /* Total length of memory pointed to by subflow_info */
|
||||
|
||||
struct mptcp_meta_info *meta_info;
|
||||
struct tcp_info *initial;
|
||||
struct tcp_info *subflows; /* Pointer to array of tcp_info structs */
|
||||
struct mptcp_sub_info *subflow_info;
|
||||
};
|
||||
#endif
|
||||
/* for TCP_MD5SIG socket option */
|
||||
#define TCP_MD5SIG_MAXKEYLEN 80
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue