aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/udp.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-10-13 05:46:48 -0400
committerDavid Howells <dhowells@redhat.com>2012-10-13 05:46:48 -0400
commit607ca46e97a1b6594b29647d98a32d545c24bdff (patch)
tree30f4c0784bfddb57332cdc0678bd06d1e77fa185 /include/linux/udp.h
parent08cce05c5a91f5017f4edc9866cf026908c73f9f (diff)
UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/linux/udp.h')
-rw-r--r--include/linux/udp.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h
index 03f72a2ba028..0b67d7793520 100644
--- a/include/linux/udp.h
+++ b/include/linux/udp.h
@@ -17,28 +17,10 @@
17#ifndef _LINUX_UDP_H 17#ifndef _LINUX_UDP_H
18#define _LINUX_UDP_H 18#define _LINUX_UDP_H
19 19
20#include <linux/types.h>
21
22struct udphdr {
23 __be16 source;
24 __be16 dest;
25 __be16 len;
26 __sum16 check;
27};
28
29/* UDP socket options */
30#define UDP_CORK 1 /* Never send partially complete segments */
31#define UDP_ENCAP 100 /* Set the socket to accept encapsulated packets */
32
33/* UDP encapsulation types */
34#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
35#define UDP_ENCAP_ESPINUDP 2 /* draft-ietf-ipsec-udp-encaps-06 */
36#define UDP_ENCAP_L2TPINUDP 3 /* rfc2661 */
37
38#ifdef __KERNEL__
39#include <net/inet_sock.h> 20#include <net/inet_sock.h>
40#include <linux/skbuff.h> 21#include <linux/skbuff.h>
41#include <net/netns/hash.h> 22#include <net/netns/hash.h>
23#include <uapi/linux/udp.h>
42 24
43static inline struct udphdr *udp_hdr(const struct sk_buff *skb) 25static inline struct udphdr *udp_hdr(const struct sk_buff *skb)
44{ 26{
@@ -96,6 +78,4 @@ static inline struct udp_sock *udp_sk(const struct sock *sk)
96 78
97#define IS_UDPLITE(__sk) (udp_sk(__sk)->pcflag) 79#define IS_UDPLITE(__sk) (udp_sk(__sk)->pcflag)
98 80
99#endif
100
101#endif /* _LINUX_UDP_H */ 81#endif /* _LINUX_UDP_H */