linux/include/uapi/linux/dccp.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI_LINUX_DCCP_H
#define _UAPI_LINUX_DCCP_H

#include <linux/types.h>
#include <asm/byteorder.h>

/**
 * struct dccp_hdr - generic part of DCCP packet header
 *
 * @dccph_sport - Relevant port on the endpoint that sent this packet
 * @dccph_dport - Relevant port on the other endpoint
 * @dccph_doff - Data Offset from the start of the DCCP header, in 32-bit words
 * @dccph_ccval - Used by the HC-Sender CCID
 * @dccph_cscov - Parts of the packet that are covered by the Checksum field
 * @dccph_checksum - Internet checksum, depends on dccph_cscov
 * @dccph_x - 0 = 24 bit sequence number, 1 = 48
 * @dccph_type - packet type, see DCCP_PKT_ prefixed macros
 * @dccph_seq - sequence number high or low order 24 bits, depends on dccph_x
 */
struct dccp_hdr {};

/**
 * struct dccp_hdr_ext - the low bits of a 48 bit seq packet
 *
 * @dccph_seq_low - low 24 bits of a 48 bit seq packet
 */
struct dccp_hdr_ext {};

/**
 * struct dccp_hdr_request - Connection initiation request header
 *
 * @dccph_req_service - Service to which the client app wants to connect
 */
struct dccp_hdr_request {};
/**
 * struct dccp_hdr_ack_bits - acknowledgment bits common to most packets
 *
 * @dccph_resp_ack_nr_high - 48 bit ack number high order bits, contains GSR
 * @dccph_resp_ack_nr_low - 48 bit ack number low order bits, contains GSR
 */
struct dccp_hdr_ack_bits {};
/**
 * struct dccp_hdr_response - Connection initiation response header
 *
 * @dccph_resp_ack - 48 bit Acknowledgment Number Subheader (5.3)
 * @dccph_resp_service - Echoes the Service Code on a received DCCP-Request
 */
struct dccp_hdr_response {};

/**
 * struct dccp_hdr_reset - Unconditionally shut down a connection
 *
 * @dccph_reset_ack - 48 bit Acknowledgment Number Subheader (5.6)
 * @dccph_reset_code - one of %dccp_reset_codes
 * @dccph_reset_data - the Data 1 ... Data 3 fields from 5.6
 */
struct dccp_hdr_reset {};

enum dccp_pkt_type {};

#define DCCP_NR_PKT_TYPES

static inline unsigned int dccp_packet_hdr_len(const __u8 type)
{}
enum dccp_reset_codes {};

/* DCCP options */
enum {};
/* maximum size of a single TLV-encoded DCCP option (sans type/len bytes) */
#define DCCP_SINGLE_OPT_MAXLEN

/* DCCP CCIDS */
enum {};

/* DCCP features (RFC 4340 section 6.4) */
enum dccp_feature_numbers {};

/* DCCP socket control message types for cmsg */
enum dccp_cmsg_type {};

/* DCCP priorities for outgoing/queued packets */
enum dccp_packet_dequeueing_policy {};

/* DCCP socket options */
#define DCCP_SOCKOPT_PACKET_SIZE
#define DCCP_SOCKOPT_SERVICE
#define DCCP_SOCKOPT_CHANGE_L
#define DCCP_SOCKOPT_CHANGE_R
#define DCCP_SOCKOPT_GET_CUR_MPS
#define DCCP_SOCKOPT_SERVER_TIMEWAIT
#define DCCP_SOCKOPT_SEND_CSCOV
#define DCCP_SOCKOPT_RECV_CSCOV
#define DCCP_SOCKOPT_AVAILABLE_CCIDS
#define DCCP_SOCKOPT_CCID
#define DCCP_SOCKOPT_TX_CCID
#define DCCP_SOCKOPT_RX_CCID
#define DCCP_SOCKOPT_QPOLICY_ID
#define DCCP_SOCKOPT_QPOLICY_TXQLEN
#define DCCP_SOCKOPT_CCID_RX_INFO
#define DCCP_SOCKOPT_CCID_TX_INFO

/* maximum number of services provided on the same listening port */
#define DCCP_SERVICE_LIST_MAX_LEN


#endif /* _UAPI_LINUX_DCCP_H */