move invariant netinet/in.h stuff out of bits/in.h
[musl] / include / netinet / udp.h
1 #ifndef _NETINET_UDP_H
2 #define _NETINET_UDP_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <stdint.h>
9
10 struct udphdr {
11         uint16_t source;
12         uint16_t dest;
13         uint16_t len;
14         uint16_t check;
15 };
16
17 #define uh_sport source
18 #define uh_dport dest
19 #define uh_ulen len
20 #define uh_sum check
21
22 #define UDP_CORK        1
23 #define UDP_ENCAP       100
24
25 #define UDP_ENCAP_ESPINUDP_NON_IKE 1
26 #define UDP_ENCAP_ESPINUDP      2
27 #define UDP_ENCAP_L2TPINUDP     3
28
29 #define SOL_UDP            17
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif