iconv: add euro symbol to GBK as single byte 0x80
[musl.git] / include / netinet / udp.h
blob40c3f2034d6dfde07074041fc11791635e0aab72
1 #ifndef _NETINET_UDP_H
2 #define _NETINET_UDP_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
9 #include <stdint.h>
11 #ifdef _GNU_SOURCE
12 #define uh_sport source
13 #define uh_dport dest
14 #define uh_ulen len
15 #define uh_sum check
16 #endif
18 struct udphdr {
19 uint16_t uh_sport;
20 uint16_t uh_dport;
21 uint16_t uh_ulen;
22 uint16_t uh_sum;
25 #define UDP_CORK 1
26 #define UDP_ENCAP 100
27 #define UDP_NO_CHECK6_TX 101
28 #define UDP_NO_CHECK6_RX 102
29 #define UDP_SEGMENT 103
30 #define UDP_GRO 104
32 #define UDP_ENCAP_ESPINUDP_NON_IKE 1
33 #define UDP_ENCAP_ESPINUDP 2
34 #define UDP_ENCAP_L2TPINUDP 3
35 #define UDP_ENCAP_GTP0 4
36 #define UDP_ENCAP_GTP1U 5
37 #define UDP_ENCAP_RXRPC 6
38 #define TCP_ENCAP_ESPINTCP 7
40 #define SOL_UDP 17
42 #ifdef __cplusplus
44 #endif
46 #endif