| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_LINUX_TCP_H | 
|  | 20 | #define _UAPI_LINUX_TCP_H | 
|  | 21 | #include <linux/types.h> | 
|  | 22 | #include <asm/byteorder.h> | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #include <linux/socket.h> | 
|  | 24 | struct tcphdr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | __be16 source; | 
|  | 26 | __be16 dest; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | __be32 seq; | 
|  | 28 | __be32 ack_seq; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 29 | #ifdef __LITTLE_ENDIAN_BITFIELD | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 | __u16 res1 : 4, doff : 4, fin : 1, syn : 1, rst : 1, psh : 1, ack : 1, urg : 1, ece : 1, cwr : 1; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #elif defined(__BIG_ENDIAN_BITFIELD) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | __u16 doff : 4, res1 : 4, cwr : 1, ece : 1, urg : 1, ack : 1, psh : 1, rst : 1, syn : 1, fin : 1; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | #else | 
|  | 34 | #error "Adjust your <asm/byteorder.h> defines" | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | #endif | 
|  | 36 | __be16 window; | 
|  | 37 | __sum16 check; | 
|  | 38 | __be16 urg_ptr; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | }; | 
|  | 40 | union tcp_word_hdr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 41 | struct tcphdr hdr; | 
|  | 42 | __be32 words[5]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | }; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | #define tcp_flag_word(tp) (((union tcp_word_hdr *) (tp))->words[3]) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | enum { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 46 | TCP_FLAG_CWR = __constant_cpu_to_be32(0x00800000), | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | TCP_FLAG_ECE = __constant_cpu_to_be32(0x00400000), | 
|  | 48 | TCP_FLAG_URG = __constant_cpu_to_be32(0x00200000), | 
|  | 49 | TCP_FLAG_ACK = __constant_cpu_to_be32(0x00100000), | 
|  | 50 | TCP_FLAG_PSH = __constant_cpu_to_be32(0x00080000), | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | TCP_FLAG_RST = __constant_cpu_to_be32(0x00040000), | 
|  | 52 | TCP_FLAG_SYN = __constant_cpu_to_be32(0x00020000), | 
|  | 53 | TCP_FLAG_FIN = __constant_cpu_to_be32(0x00010000), | 
|  | 54 | TCP_RESERVED_BITS = __constant_cpu_to_be32(0x0F000000), | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | TCP_DATA_OFFSET = __constant_cpu_to_be32(0xF0000000) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 57 | #define TCP_MSS_DEFAULT 536U | 
|  | 58 | #define TCP_MSS_DESIRED 1220U | 
|  | 59 | #define TCP_NODELAY 1 | 
|  | 60 | #define TCP_MAXSEG 2 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 61 | #define TCP_CORK 3 | 
|  | 62 | #define TCP_KEEPIDLE 4 | 
|  | 63 | #define TCP_KEEPINTVL 5 | 
|  | 64 | #define TCP_KEEPCNT 6 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 65 | #define TCP_SYNCNT 7 | 
|  | 66 | #define TCP_LINGER2 8 | 
|  | 67 | #define TCP_DEFER_ACCEPT 9 | 
|  | 68 | #define TCP_WINDOW_CLAMP 10 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | #define TCP_INFO 11 | 
|  | 70 | #define TCP_QUICKACK 12 | 
|  | 71 | #define TCP_CONGESTION 13 | 
|  | 72 | #define TCP_MD5SIG 14 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 73 | #define TCP_THIN_LINEAR_TIMEOUTS 16 | 
|  | 74 | #define TCP_THIN_DUPACK 17 | 
|  | 75 | #define TCP_USER_TIMEOUT 18 | 
|  | 76 | #define TCP_REPAIR 19 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 77 | #define TCP_REPAIR_QUEUE 20 | 
|  | 78 | #define TCP_QUEUE_SEQ 21 | 
|  | 79 | #define TCP_REPAIR_OPTIONS 22 | 
|  | 80 | #define TCP_FASTOPEN 23 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 81 | #define TCP_TIMESTAMP 24 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 82 | #define TCP_NOTSENT_LOWAT 25 | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 83 | #define TCP_CC_INFO 26 | 
|  | 84 | #define TCP_SAVE_SYN 27 | 
|  | 85 | #define TCP_SAVED_SYN 28 | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 86 | #define TCP_REPAIR_WINDOW 29 | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 87 | #define TCP_FASTOPEN_CONNECT 30 | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 88 | #define TCP_ULP 31 | 
|  | 89 | #define TCP_MD5SIG_EXT 32 | 
| Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 90 | #define TCP_FASTOPEN_KEY 33 | 
|  | 91 | #define TCP_FASTOPEN_NO_COOKIE 34 | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 92 | #define TCP_ZEROCOPY_RECEIVE 35 | 
|  | 93 | #define TCP_INQ 36 | 
|  | 94 | #define TCP_CM_INQ TCP_INQ | 
| Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 95 | #define TCP_TX_DELAY 37 | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 96 | #define TCP_REPAIR_ON 1 | 
|  | 97 | #define TCP_REPAIR_OFF 0 | 
|  | 98 | #define TCP_REPAIR_OFF_NO_WP - 1 | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 99 | struct tcp_repair_opt { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 100 | __u32 opt_code; | 
|  | 101 | __u32 opt_val; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 102 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 103 | struct tcp_repair_window { | 
|  | 104 | __u32 snd_wl1; | 
|  | 105 | __u32 snd_wnd; | 
|  | 106 | __u32 max_window; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 107 | __u32 rcv_wnd; | 
|  | 108 | __u32 rcv_wup; | 
|  | 109 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | enum { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 111 | TCP_NO_QUEUE, | 
|  | 112 | TCP_RECV_QUEUE, | 
|  | 113 | TCP_SEND_QUEUE, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 114 | TCP_QUEUES_NR, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 115 | }; | 
| Christopher Ferris | d32ca14 | 2020-02-04 16:16:51 -0800 | [diff] [blame] | 116 | enum tcp_fastopen_client_fail { | 
|  | 117 | TFO_STATUS_UNSPEC, | 
|  | 118 | TFO_COOKIE_UNAVAILABLE, | 
|  | 119 | TFO_DATA_NOT_ACKED, | 
|  | 120 | TFO_SYN_RETRANSMITTED, | 
|  | 121 | }; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 122 | #define TCPI_OPT_TIMESTAMPS 1 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 123 | #define TCPI_OPT_SACK 2 | 
|  | 124 | #define TCPI_OPT_WSCALE 4 | 
|  | 125 | #define TCPI_OPT_ECN 8 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 126 | #define TCPI_OPT_ECN_SEEN 16 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 127 | #define TCPI_OPT_SYN_DATA 32 | 
|  | 128 | enum tcp_ca_state { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 129 | TCP_CA_Open = 0, | 
|  | 130 | #define TCPF_CA_Open (1 << TCP_CA_Open) | 
|  | 131 | TCP_CA_Disorder = 1, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 132 | #define TCPF_CA_Disorder (1 << TCP_CA_Disorder) | 
|  | 133 | TCP_CA_CWR = 2, | 
|  | 134 | #define TCPF_CA_CWR (1 << TCP_CA_CWR) | 
|  | 135 | TCP_CA_Recovery = 3, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 136 | #define TCPF_CA_Recovery (1 << TCP_CA_Recovery) | 
|  | 137 | TCP_CA_Loss = 4 | 
|  | 138 | #define TCPF_CA_Loss (1 << TCP_CA_Loss) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 139 | }; | 
|  | 140 | struct tcp_info { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 141 | __u8 tcpi_state; | 
|  | 142 | __u8 tcpi_ca_state; | 
|  | 143 | __u8 tcpi_retransmits; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 144 | __u8 tcpi_probes; | 
|  | 145 | __u8 tcpi_backoff; | 
|  | 146 | __u8 tcpi_options; | 
|  | 147 | __u8 tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4; | 
| Christopher Ferris | d32ca14 | 2020-02-04 16:16:51 -0800 | [diff] [blame] | 148 | __u8 tcpi_delivery_rate_app_limited : 1, tcpi_fastopen_client_fail : 2; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 149 | __u32 tcpi_rto; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 150 | __u32 tcpi_ato; | 
|  | 151 | __u32 tcpi_snd_mss; | 
|  | 152 | __u32 tcpi_rcv_mss; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 153 | __u32 tcpi_unacked; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 154 | __u32 tcpi_sacked; | 
|  | 155 | __u32 tcpi_lost; | 
|  | 156 | __u32 tcpi_retrans; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 157 | __u32 tcpi_fackets; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 158 | __u32 tcpi_last_data_sent; | 
|  | 159 | __u32 tcpi_last_ack_sent; | 
|  | 160 | __u32 tcpi_last_data_recv; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 161 | __u32 tcpi_last_ack_recv; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 162 | __u32 tcpi_pmtu; | 
|  | 163 | __u32 tcpi_rcv_ssthresh; | 
|  | 164 | __u32 tcpi_rtt; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 165 | __u32 tcpi_rttvar; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 166 | __u32 tcpi_snd_ssthresh; | 
|  | 167 | __u32 tcpi_snd_cwnd; | 
|  | 168 | __u32 tcpi_advmss; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 169 | __u32 tcpi_reordering; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 170 | __u32 tcpi_rcv_rtt; | 
|  | 171 | __u32 tcpi_rcv_space; | 
|  | 172 | __u32 tcpi_total_retrans; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 173 | __u64 tcpi_pacing_rate; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 174 | __u64 tcpi_max_pacing_rate; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 175 | __u64 tcpi_bytes_acked; | 
|  | 176 | __u64 tcpi_bytes_received; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 177 | __u32 tcpi_segs_out; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 178 | __u32 tcpi_segs_in; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 179 | __u32 tcpi_notsent_bytes; | 
|  | 180 | __u32 tcpi_min_rtt; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 181 | __u32 tcpi_data_segs_in; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 182 | __u32 tcpi_data_segs_out; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 183 | __u64 tcpi_delivery_rate; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 184 | __u64 tcpi_busy_time; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 185 | __u64 tcpi_rwnd_limited; | 
|  | 186 | __u64 tcpi_sndbuf_limited; | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 187 | __u32 tcpi_delivered; | 
|  | 188 | __u32 tcpi_delivered_ce; | 
|  | 189 | __u64 tcpi_bytes_sent; | 
|  | 190 | __u64 tcpi_bytes_retrans; | 
|  | 191 | __u32 tcpi_dsack_dups; | 
|  | 192 | __u32 tcpi_reord_seen; | 
| Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 193 | __u32 tcpi_rcv_ooopack; | 
|  | 194 | __u32 tcpi_snd_wnd; | 
| Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 195 | __u32 tcpi_rcv_wnd; | 
|  | 196 | __u32 tcpi_rehash; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 197 | }; | 
|  | 198 | enum { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 199 | TCP_NLA_PAD, | 
|  | 200 | TCP_NLA_BUSY, | 
|  | 201 | TCP_NLA_RWND_LIMITED, | 
|  | 202 | TCP_NLA_SNDBUF_LIMITED, | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 203 | TCP_NLA_DATA_SEGS_OUT, | 
|  | 204 | TCP_NLA_TOTAL_RETRANS, | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 205 | TCP_NLA_PACING_RATE, | 
|  | 206 | TCP_NLA_DELIVERY_RATE, | 
|  | 207 | TCP_NLA_SND_CWND, | 
|  | 208 | TCP_NLA_REORDERING, | 
|  | 209 | TCP_NLA_MIN_RTT, | 
|  | 210 | TCP_NLA_RECUR_RETRANS, | 
|  | 211 | TCP_NLA_DELIVERY_RATE_APP_LMT, | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 212 | TCP_NLA_SNDQ_SIZE, | 
|  | 213 | TCP_NLA_CA_STATE, | 
|  | 214 | TCP_NLA_SND_SSTHRESH, | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 215 | TCP_NLA_DELIVERED, | 
|  | 216 | TCP_NLA_DELIVERED_CE, | 
|  | 217 | TCP_NLA_BYTES_SENT, | 
|  | 218 | TCP_NLA_BYTES_RETRANS, | 
|  | 219 | TCP_NLA_DSACK_DUPS, | 
|  | 220 | TCP_NLA_REORD_SEEN, | 
| Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 221 | TCP_NLA_SRTT, | 
| Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 222 | TCP_NLA_TIMEOUT_REHASH, | 
| Christopher Ferris | af09c70 | 2020-06-01 20:29:29 -0700 | [diff] [blame] | 223 | TCP_NLA_BYTES_NOTSENT, | 
| Christopher Ferris | 25c18d4 | 2020-10-14 17:42:58 -0700 | [diff] [blame] | 224 | TCP_NLA_EDT, | 
| Christopher Ferris | a9750ed | 2021-05-03 14:02:49 -0700 | [diff] [blame] | 225 | TCP_NLA_TTL, | 
| Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 226 | TCP_NLA_REHASH, | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 227 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 228 | #define TCP_MD5SIG_MAXKEYLEN 80 | 
| Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 229 | #define TCP_MD5SIG_FLAG_PREFIX 0x1 | 
|  | 230 | #define TCP_MD5SIG_FLAG_IFINDEX 0x2 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 231 | struct tcp_md5sig { | 
| Colin Cross | d275067 | 2021-06-29 12:52:26 -0700 | [diff] [blame] | 232 | struct __kernel_sockaddr_storage tcpm_addr; | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 233 | __u8 tcpm_flags; | 
|  | 234 | __u8 tcpm_prefixlen; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 235 | __u16 tcpm_keylen; | 
| Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 236 | int tcpm_ifindex; | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 237 | __u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; | 
|  | 238 | }; | 
|  | 239 | struct tcp_diag_md5sig { | 
|  | 240 | __u8 tcpm_family; | 
|  | 241 | __u8 tcpm_prefixlen; | 
|  | 242 | __u16 tcpm_keylen; | 
|  | 243 | __be32 tcpm_addr[4]; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 244 | __u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 245 | }; | 
| Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 246 | #define TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT 0x1 | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 247 | struct tcp_zerocopy_receive { | 
|  | 248 | __u64 address; | 
|  | 249 | __u32 length; | 
|  | 250 | __u32 recv_skip_hint; | 
| Christopher Ferris | af09c70 | 2020-06-01 20:29:29 -0700 | [diff] [blame] | 251 | __u32 inq; | 
|  | 252 | __s32 err; | 
| Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 253 | __u64 copybuf_address; | 
|  | 254 | __s32 copybuf_len; | 
|  | 255 | __u32 flags; | 
| Christopher Ferris | a9750ed | 2021-05-03 14:02:49 -0700 | [diff] [blame] | 256 | __u64 msg_control; | 
|  | 257 | __u64 msg_controllen; | 
|  | 258 | __u32 msg_flags; | 
|  | 259 | __u32 reserved; | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 260 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 261 | #endif |