Blame include/uapi/linux/tcp.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
Packit Service 3880ab
/*
Packit Service 3880ab
 * INET		An implementation of the TCP/IP protocol suite for the LINUX
Packit Service 3880ab
 *		operating system.  INET is implemented using the  BSD Socket
Packit Service 3880ab
 *		interface as the means of communication with the user level.
Packit Service 3880ab
 *
Packit Service 3880ab
 *		Definitions for the TCP protocol.
Packit Service 3880ab
 *
Packit Service 3880ab
 * Version:	@(#)tcp.h	1.0.2	04/28/93
Packit Service 3880ab
 *
Packit Service 3880ab
 * Author:	Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
Packit Service 3880ab
 *
Packit Service 3880ab
 *		This program is free software; you can redistribute it and/or
Packit Service 3880ab
 *		modify it under the terms of the GNU General Public License
Packit Service 3880ab
 *		as published by the Free Software Foundation; either version
Packit Service 3880ab
 *		2 of the License, or (at your option) any later version.
Packit Service 3880ab
 */
Packit Service 3880ab
#ifndef _LINUX_TCP_H
Packit Service 3880ab
#define _LINUX_TCP_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/types.h>
Packit Service 3880ab
#include <asm/byteorder.h>
Packit Service 3880ab
#include <linux/socket.h>
Packit Service 3880ab
Packit Service 3880ab
struct tcphdr {
Packit Service 3880ab
	__be16	source;
Packit Service 3880ab
	__be16	dest;
Packit Service 3880ab
	__be32	seq;
Packit Service 3880ab
	__be32	ack_seq;
Packit Service 3880ab
#if defined(__LITTLE_ENDIAN_BITFIELD)
Packit Service 3880ab
	__u16	res1:4,
Packit Service 3880ab
		doff:4,
Packit Service 3880ab
		fin:1,
Packit Service 3880ab
		syn:1,
Packit Service 3880ab
		rst:1,
Packit Service 3880ab
		psh:1,
Packit Service 3880ab
		ack:1,
Packit Service 3880ab
		urg:1,
Packit Service 3880ab
		ece:1,
Packit Service 3880ab
		cwr:1;
Packit Service 3880ab
#elif defined(__BIG_ENDIAN_BITFIELD)
Packit Service 3880ab
	__u16	doff:4,
Packit Service 3880ab
		res1:4,
Packit Service 3880ab
		cwr:1,
Packit Service 3880ab
		ece:1,
Packit Service 3880ab
		urg:1,
Packit Service 3880ab
		ack:1,
Packit Service 3880ab
		psh:1,
Packit Service 3880ab
		rst:1,
Packit Service 3880ab
		syn:1,
Packit Service 3880ab
		fin:1;
Packit Service 3880ab
#else
Packit Service 3880ab
#error	"Adjust your <asm/byteorder.h> defines"
Packit Service 3880ab
#endif	
Packit Service 3880ab
	__be16	window;
Packit Service 3880ab
	__sum16	check;
Packit Service 3880ab
	__be16	urg_ptr;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/*
Packit Service 3880ab
 *	The union cast uses a gcc extension to avoid aliasing problems
Packit Service 3880ab
 *  (union is compatible to any of its members)
Packit Service 3880ab
 *  This means this part of the code is -fstrict-aliasing safe now.
Packit Service 3880ab
 */
Packit Service 3880ab
union tcp_word_hdr { 
Packit Service 3880ab
	struct tcphdr hdr;
Packit Service 3880ab
	__be32 		  words[5];
Packit Service 3880ab
}; 
Packit Service 3880ab
Packit Service 3880ab
#define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3]) 
Packit Service 3880ab
Packit Service 3880ab
enum { 
Packit Service 3880ab
	TCP_FLAG_CWR = __constant_cpu_to_be32(0x00800000),
Packit Service 3880ab
	TCP_FLAG_ECE = __constant_cpu_to_be32(0x00400000),
Packit Service 3880ab
	TCP_FLAG_URG = __constant_cpu_to_be32(0x00200000),
Packit Service 3880ab
	TCP_FLAG_ACK = __constant_cpu_to_be32(0x00100000),
Packit Service 3880ab
	TCP_FLAG_PSH = __constant_cpu_to_be32(0x00080000),
Packit Service 3880ab
	TCP_FLAG_RST = __constant_cpu_to_be32(0x00040000),
Packit Service 3880ab
	TCP_FLAG_SYN = __constant_cpu_to_be32(0x00020000),
Packit Service 3880ab
	TCP_FLAG_FIN = __constant_cpu_to_be32(0x00010000),
Packit Service 3880ab
	TCP_RESERVED_BITS = __constant_cpu_to_be32(0x0F000000),
Packit Service 3880ab
	TCP_DATA_OFFSET = __constant_cpu_to_be32(0xF0000000)
Packit Service 3880ab
}; 
Packit Service 3880ab
Packit Service 3880ab
/*
Packit Service 3880ab
 * TCP general constants
Packit Service 3880ab
 */
Packit Service 3880ab
#define TCP_MSS_DEFAULT		 536U	/* IPv4 (RFC1122, RFC2581) */
Packit Service 3880ab
#define TCP_MSS_DESIRED		1220U	/* IPv6 (tunneled), EDNS0 (RFC3226) */
Packit Service 3880ab
Packit Service 3880ab
/* TCP socket options */
Packit Service 3880ab
#define TCP_NODELAY		1	/* Turn off Nagle's algorithm. */
Packit Service 3880ab
#define TCP_MAXSEG		2	/* Limit MSS */
Packit Service 3880ab
#define TCP_CORK		3	/* Never send partially complete segments */
Packit Service 3880ab
#define TCP_KEEPIDLE		4	/* Start keeplives after this period */
Packit Service 3880ab
#define TCP_KEEPINTVL		5	/* Interval between keepalives */
Packit Service 3880ab
#define TCP_KEEPCNT		6	/* Number of keepalives before death */
Packit Service 3880ab
#define TCP_SYNCNT		7	/* Number of SYN retransmits */
Packit Service 3880ab
#define TCP_LINGER2		8	/* Life time of orphaned FIN-WAIT-2 state */
Packit Service 3880ab
#define TCP_DEFER_ACCEPT	9	/* Wake up listener only when data arrive */
Packit Service 3880ab
#define TCP_WINDOW_CLAMP	10	/* Bound advertised window */
Packit Service 3880ab
#define TCP_INFO		11	/* Information about this connection. */
Packit Service 3880ab
#define TCP_QUICKACK		12	/* Block/reenable quick acks */
Packit Service 3880ab
#define TCP_CONGESTION		13	/* Congestion control algorithm */
Packit Service 3880ab
#define TCP_MD5SIG		14	/* TCP MD5 Signature (RFC2385) */
Packit Service 3880ab
#define TCP_THIN_LINEAR_TIMEOUTS 16      /* Use linear timeouts for thin streams*/
Packit Service 3880ab
#define TCP_THIN_DUPACK         17      /* Fast retrans. after 1 dupack */
Packit Service 3880ab
#define TCP_USER_TIMEOUT	18	/* How long for loss retry before timeout */
Packit Service 3880ab
#define TCP_REPAIR		19	/* TCP sock is under repair right now */
Packit Service 3880ab
#define TCP_REPAIR_QUEUE	20
Packit Service 3880ab
#define TCP_QUEUE_SEQ		21
Packit Service 3880ab
#define TCP_REPAIR_OPTIONS	22
Packit Service 3880ab
#define TCP_FASTOPEN		23	/* Enable FastOpen on listeners */
Packit Service 3880ab
#define TCP_TIMESTAMP		24
Packit Service 3880ab
#define TCP_NOTSENT_LOWAT	25	/* limit number of unsent bytes in write queue */
Packit Service 3880ab
#define TCP_CC_INFO		26	/* Get Congestion Control (optional) info */
Packit Service 3880ab
#define TCP_SAVE_SYN		27	/* Record SYN headers for new connections */
Packit Service 3880ab
#define TCP_SAVED_SYN		28	/* Get SYN headers recorded for connection */
Packit Service 3880ab
#define TCP_REPAIR_WINDOW	29	/* Get/set window parameters */
Packit Service 3880ab
#define TCP_FASTOPEN_CONNECT	30	/* Attempt FastOpen with connect */
Packit Service 3880ab
#define TCP_ULP			31	/* Attach a ULP to a TCP connection */
Packit Service 3880ab
#define TCP_MD5SIG_EXT		32	/* TCP MD5 Signature with extensions */
Packit Service 3880ab
#define TCP_FASTOPEN_KEY	33	/* Set the key for Fast Open (cookie) */
Packit Service 3880ab
#define TCP_FASTOPEN_NO_COOKIE	34	/* Enable TFO without a TFO cookie */
Packit Service 3880ab
#define TCP_ZEROCOPY_RECEIVE	35
Packit Service 3880ab
#define TCP_INQ			36	/* Notify bytes available to read as a cmsg on read */
Packit Service 3880ab
Packit Service 3880ab
#define TCP_CM_INQ		TCP_INQ
Packit Service 3880ab
Packit Service 3880ab
#define TCP_TX_DELAY		37	/* delay outgoing packets by XX usec */
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
#define TCP_REPAIR_ON		1
Packit Service 3880ab
#define TCP_REPAIR_OFF		0
Packit Service 3880ab
#define TCP_REPAIR_OFF_NO_WP	-1	/* Turn off without window probes */
Packit Service 3880ab
Packit Service 3880ab
struct tcp_repair_opt {
Packit Service 3880ab
	__u32	opt_code;
Packit Service 3880ab
	__u32	opt_val;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct tcp_repair_window {
Packit Service 3880ab
	__u32	snd_wl1;
Packit Service 3880ab
	__u32	snd_wnd;
Packit Service 3880ab
	__u32	max_window;
Packit Service 3880ab
Packit Service 3880ab
	__u32	rcv_wnd;
Packit Service 3880ab
	__u32	rcv_wup;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	TCP_NO_QUEUE,
Packit Service 3880ab
	TCP_RECV_QUEUE,
Packit Service 3880ab
	TCP_SEND_QUEUE,
Packit Service 3880ab
	TCP_QUEUES_NR,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* why fastopen failed from client perspective */
Packit Service 3880ab
enum tcp_fastopen_client_fail {
Packit Service 3880ab
	TFO_STATUS_UNSPEC, /* catch-all */
Packit Service 3880ab
	TFO_COOKIE_UNAVAILABLE, /* if not in TFO_CLIENT_NO_COOKIE mode */
Packit Service 3880ab
	TFO_DATA_NOT_ACKED, /* SYN-ACK did not ack SYN data */
Packit Service 3880ab
	TFO_SYN_RETRANSMITTED, /* SYN-ACK did not ack SYN data after timeout */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* for TCP_INFO socket option */
Packit Service 3880ab
#define TCPI_OPT_TIMESTAMPS	1
Packit Service 3880ab
#define TCPI_OPT_SACK		2
Packit Service 3880ab
#define TCPI_OPT_WSCALE		4
Packit Service 3880ab
#define TCPI_OPT_ECN		8 /* ECN was negociated at TCP session init */
Packit Service 3880ab
#define TCPI_OPT_ECN_SEEN	16 /* we received at least one packet with ECT */
Packit Service 3880ab
#define TCPI_OPT_SYN_DATA	32 /* SYN-ACK acked data in SYN sent or rcvd */
Packit Service 3880ab
Packit Service 3880ab
/*
Packit Service 3880ab
 * Sender's congestion state indicating normal or abnormal situations
Packit Service 3880ab
 * in the last round of packets sent. The state is driven by the ACK
Packit Service 3880ab
 * information and timer events.
Packit Service 3880ab
 */
Packit Service 3880ab
enum tcp_ca_state {
Packit Service 3880ab
	/*
Packit Service 3880ab
	 * Nothing bad has been observed recently.
Packit Service 3880ab
	 * No apparent reordering, packet loss, or ECN marks.
Packit Service 3880ab
	 */
Packit Service 3880ab
	TCP_CA_Open = 0,
Packit Service 3880ab
#define TCPF_CA_Open	(1<
Packit Service 3880ab
	/*
Packit Service 3880ab
	 * The sender enters disordered state when it has received DUPACKs or
Packit Service 3880ab
	 * SACKs in the last round of packets sent. This could be due to packet
Packit Service 3880ab
	 * loss or reordering but needs further information to confirm packets
Packit Service 3880ab
	 * have been lost.
Packit Service 3880ab
	 */
Packit Service 3880ab
	TCP_CA_Disorder = 1,
Packit Service 3880ab
#define TCPF_CA_Disorder (1<
Packit Service 3880ab
	/*
Packit Service 3880ab
	 * The sender enters Congestion Window Reduction (CWR) state when it
Packit Service 3880ab
	 * has received ACKs with ECN-ECE marks, or has experienced congestion
Packit Service 3880ab
	 * or packet discard on the sender host (e.g. qdisc).
Packit Service 3880ab
	 */
Packit Service 3880ab
	TCP_CA_CWR = 2,
Packit Service 3880ab
#define TCPF_CA_CWR	(1<
Packit Service 3880ab
	/*
Packit Service 3880ab
	 * The sender is in fast recovery and retransmitting lost packets,
Packit Service 3880ab
	 * typically triggered by ACK events.
Packit Service 3880ab
	 */
Packit Service 3880ab
	TCP_CA_Recovery = 3,
Packit Service 3880ab
#define TCPF_CA_Recovery (1<
Packit Service 3880ab
	/*
Packit Service 3880ab
	 * The sender is in loss recovery triggered by retransmission timeout.
Packit Service 3880ab
	 */
Packit Service 3880ab
	TCP_CA_Loss = 4
Packit Service 3880ab
#define TCPF_CA_Loss	(1<
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct tcp_info {
Packit Service 3880ab
	__u8	tcpi_state;
Packit Service 3880ab
	__u8	tcpi_ca_state;
Packit Service 3880ab
	__u8	tcpi_retransmits;
Packit Service 3880ab
	__u8	tcpi_probes;
Packit Service 3880ab
	__u8	tcpi_backoff;
Packit Service 3880ab
	__u8	tcpi_options;
Packit Service 3880ab
	__u8	tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4;
Packit Service 3880ab
	__u8	tcpi_delivery_rate_app_limited:1, tcpi_fastopen_client_fail:2;
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_rto;
Packit Service 3880ab
	__u32	tcpi_ato;
Packit Service 3880ab
	__u32	tcpi_snd_mss;
Packit Service 3880ab
	__u32	tcpi_rcv_mss;
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_unacked;
Packit Service 3880ab
	__u32	tcpi_sacked;
Packit Service 3880ab
	__u32	tcpi_lost;
Packit Service 3880ab
	__u32	tcpi_retrans;
Packit Service 3880ab
	__u32	tcpi_fackets;
Packit Service 3880ab
Packit Service 3880ab
	/* Times. */
Packit Service 3880ab
	__u32	tcpi_last_data_sent;
Packit Service 3880ab
	__u32	tcpi_last_ack_sent;     /* Not remembered, sorry. */
Packit Service 3880ab
	__u32	tcpi_last_data_recv;
Packit Service 3880ab
	__u32	tcpi_last_ack_recv;
Packit Service 3880ab
Packit Service 3880ab
	/* Metrics. */
Packit Service 3880ab
	__u32	tcpi_pmtu;
Packit Service 3880ab
	__u32	tcpi_rcv_ssthresh;
Packit Service 3880ab
	__u32	tcpi_rtt;
Packit Service 3880ab
	__u32	tcpi_rttvar;
Packit Service 3880ab
	__u32	tcpi_snd_ssthresh;
Packit Service 3880ab
	__u32	tcpi_snd_cwnd;
Packit Service 3880ab
	__u32	tcpi_advmss;
Packit Service 3880ab
	__u32	tcpi_reordering;
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_rcv_rtt;
Packit Service 3880ab
	__u32	tcpi_rcv_space;
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_total_retrans;
Packit Service 3880ab
Packit Service 3880ab
	__u64	tcpi_pacing_rate;
Packit Service 3880ab
	__u64	tcpi_max_pacing_rate;
Packit Service 3880ab
	__u64	tcpi_bytes_acked;    /* RFC4898 tcpEStatsAppHCThruOctetsAcked */
Packit Service 3880ab
	__u64	tcpi_bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived */
Packit Service 3880ab
	__u32	tcpi_segs_out;	     /* RFC4898 tcpEStatsPerfSegsOut */
Packit Service 3880ab
	__u32	tcpi_segs_in;	     /* RFC4898 tcpEStatsPerfSegsIn */
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_notsent_bytes;
Packit Service 3880ab
	__u32	tcpi_min_rtt;
Packit Service 3880ab
	__u32	tcpi_data_segs_in;	/* RFC4898 tcpEStatsDataSegsIn */
Packit Service 3880ab
	__u32	tcpi_data_segs_out;	/* RFC4898 tcpEStatsDataSegsOut */
Packit Service 3880ab
Packit Service 3880ab
	__u64   tcpi_delivery_rate;
Packit Service 3880ab
Packit Service 3880ab
	__u64	tcpi_busy_time;      /* Time (usec) busy sending data */
Packit Service 3880ab
	__u64	tcpi_rwnd_limited;   /* Time (usec) limited by receive window */
Packit Service 3880ab
	__u64	tcpi_sndbuf_limited; /* Time (usec) limited by send buffer */
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_delivered;
Packit Service 3880ab
	__u32	tcpi_delivered_ce;
Packit Service 3880ab
Packit Service 3880ab
	__u64	tcpi_bytes_sent;     /* RFC4898 tcpEStatsPerfHCDataOctetsOut */
Packit Service 3880ab
	__u64	tcpi_bytes_retrans;  /* RFC4898 tcpEStatsPerfOctetsRetrans */
Packit Service 3880ab
	__u32	tcpi_dsack_dups;     /* RFC4898 tcpEStatsStackDSACKDups */
Packit Service 3880ab
	__u32	tcpi_reord_seen;     /* reordering events seen */
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_rcv_ooopack;    /* Out-of-order packets received */
Packit Service 3880ab
Packit Service 3880ab
	__u32	tcpi_snd_wnd;	     /* peer's advertised receive window after
Packit Service 3880ab
				      * scaling (bytes)
Packit Service 3880ab
				      */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */
Packit Service 3880ab
enum {
Packit Service 3880ab
	TCP_NLA_PAD,
Packit Service 3880ab
	TCP_NLA_BUSY,		/* Time (usec) busy sending data */
Packit Service 3880ab
	TCP_NLA_RWND_LIMITED,	/* Time (usec) limited by receive window */
Packit Service 3880ab
	TCP_NLA_SNDBUF_LIMITED,	/* Time (usec) limited by send buffer */
Packit Service 3880ab
	TCP_NLA_DATA_SEGS_OUT,	/* Data pkts sent including retransmission */
Packit Service 3880ab
	TCP_NLA_TOTAL_RETRANS,	/* Data pkts retransmitted */
Packit Service 3880ab
	TCP_NLA_PACING_RATE,    /* Pacing rate in bytes per second */
Packit Service 3880ab
	TCP_NLA_DELIVERY_RATE,  /* Delivery rate in bytes per second */
Packit Service 3880ab
	TCP_NLA_SND_CWND,       /* Sending congestion window */
Packit Service 3880ab
	TCP_NLA_REORDERING,     /* Reordering metric */
Packit Service 3880ab
	TCP_NLA_MIN_RTT,        /* minimum RTT */
Packit Service 3880ab
	TCP_NLA_RECUR_RETRANS,  /* Recurring retransmits for the current pkt */
Packit Service 3880ab
	TCP_NLA_DELIVERY_RATE_APP_LMT, /* delivery rate application limited ? */
Packit Service 3880ab
	TCP_NLA_SNDQ_SIZE,	/* Data (bytes) pending in send queue */
Packit Service 3880ab
	TCP_NLA_CA_STATE,	/* ca_state of socket */
Packit Service 3880ab
	TCP_NLA_SND_SSTHRESH,	/* Slow start size threshold */
Packit Service 3880ab
	TCP_NLA_DELIVERED,	/* Data pkts delivered incl. out-of-order */
Packit Service 3880ab
	TCP_NLA_DELIVERED_CE,	/* Like above but only ones w/ CE marks */
Packit Service 3880ab
	TCP_NLA_BYTES_SENT,	/* Data bytes sent including retransmission */
Packit Service 3880ab
	TCP_NLA_BYTES_RETRANS,	/* Data bytes retransmitted */
Packit Service 3880ab
	TCP_NLA_DSACK_DUPS,	/* DSACK blocks received */
Packit Service 3880ab
	TCP_NLA_REORD_SEEN,	/* reordering events seen */
Packit Service 3880ab
	TCP_NLA_SRTT,		/* smoothed RTT in usecs */
Packit Service 3880ab
	TCP_NLA_TIMEOUT_REHASH, /* Timeout-triggered rehash attempts */
Packit Service 3880ab
	TCP_NLA_BYTES_NOTSENT,	/* Bytes in write queue not yet sent */
Packit Service 3880ab
	TCP_NLA_EDT,		/* Earliest departure time (CLOCK_MONOTONIC) */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* for TCP_MD5SIG socket option */
Packit Service 3880ab
#define TCP_MD5SIG_MAXKEYLEN	80
Packit Service 3880ab
Packit Service 3880ab
/* tcp_md5sig extension flags for TCP_MD5SIG_EXT */
Packit Service 3880ab
#define TCP_MD5SIG_FLAG_PREFIX		0x1	/* address prefix length */
Packit Service 3880ab
#define TCP_MD5SIG_FLAG_IFINDEX		0x2	/* ifindex set */
Packit Service 3880ab
Packit Service 3880ab
struct tcp_md5sig {
Packit Service 3880ab
	struct __kernel_sockaddr_storage tcpm_addr;	/* address associated */
Packit Service 3880ab
	__u8	tcpm_flags;				/* extension flags */
Packit Service 3880ab
	__u8	tcpm_prefixlen;				/* address prefix */
Packit Service 3880ab
	__u16	tcpm_keylen;				/* key length */
Packit Service 3880ab
	int	tcpm_ifindex;				/* device index for scope */
Packit Service 3880ab
	__u8	tcpm_key[TCP_MD5SIG_MAXKEYLEN];		/* key (binary) */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* INET_DIAG_MD5SIG */
Packit Service 3880ab
struct tcp_diag_md5sig {
Packit Service 3880ab
	__u8	tcpm_family;
Packit Service 3880ab
	__u8	tcpm_prefixlen;
Packit Service 3880ab
	__u16	tcpm_keylen;
Packit Service 3880ab
	__be32	tcpm_addr[4];
Packit Service 3880ab
	__u8	tcpm_key[TCP_MD5SIG_MAXKEYLEN];
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* setsockopt(fd, IPPROTO_TCP, TCP_ZEROCOPY_RECEIVE, ...) */
Packit Service 3880ab
Packit Service 3880ab
struct tcp_zerocopy_receive {
Packit Service 3880ab
	__u64 address;		/* in: address of mapping */
Packit Service 3880ab
	__u32 length;		/* in/out: number of bytes to map/mapped */
Packit Service 3880ab
	__u32 recv_skip_hint;	/* out: amount of bytes to skip */
Packit Service 3880ab
	__u32 inq; /* out: amount of bytes in read queue */
Packit Service 3880ab
	__s32 err; /* out: socket error */
Packit Service 3880ab
};
Packit Service 3880ab
#endif /* _LINUX_TCP_H */