Blame include/uapi/linux/udp.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 UDP protocol.
Packit Service 3880ab
 *
Packit Service 3880ab
 * Version:	@(#)udp.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_UDP_H
Packit Service 3880ab
#define _LINUX_UDP_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/types.h>
Packit Service 3880ab
Packit Service 3880ab
struct udphdr {
Packit Service 3880ab
	__be16	source;
Packit Service 3880ab
	__be16	dest;
Packit Service 3880ab
	__be16	len;
Packit Service 3880ab
	__sum16	check;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* UDP socket options */
Packit Service 3880ab
#define UDP_CORK	1	/* Never send partially complete segments */
Packit Service 3880ab
#define UDP_ENCAP	100	/* Set the socket to accept encapsulated packets */
Packit Service 3880ab
#define UDP_NO_CHECK6_TX 101	/* Disable sending checksum for UDP6X */
Packit Service 3880ab
#define UDP_NO_CHECK6_RX 102	/* Disable accpeting checksum for UDP6 */
Packit Service 3880ab
#define UDP_SEGMENT	103	/* Set GSO segmentation size */
Packit Service 3880ab
#define UDP_GRO		104	/* This socket can receive UDP GRO packets */
Packit Service 3880ab
Packit Service 3880ab
/* UDP encapsulation types */
Packit Service 3880ab
#define UDP_ENCAP_ESPINUDP_NON_IKE	1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
Packit Service 3880ab
#define UDP_ENCAP_ESPINUDP	2 /* draft-ietf-ipsec-udp-encaps-06 */
Packit Service 3880ab
#define UDP_ENCAP_L2TPINUDP	3 /* rfc2661 */
Packit Service 3880ab
#define UDP_ENCAP_GTP0		4 /* GSM TS 09.60 */
Packit Service 3880ab
#define UDP_ENCAP_GTP1U		5 /* 3GPP TS 29.060 */
Packit Service 3880ab
#define UDP_ENCAP_RXRPC		6
Packit Service 3880ab
#define TCP_ENCAP_ESPINTCP	7 /* Yikes, this is really xfrm encap types. */
Packit Service 3880ab
Packit Service 3880ab
#endif /* _LINUX_UDP_H */