aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/posix/include/netinet/udp.h
blob: 5cc887de28b8bd98fe748cb0d57b2a422e1fc197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _NETINET_UDP_H
#define _NETINET_UDP_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

struct udphdr {
        union {
                struct {
                        uint16_t uh_sport;
                        uint16_t uh_dport;
                        uint16_t uh_ulen;
                        uint16_t uh_sum;
                };
                struct {
                        uint16_t source;
                        uint16_t dest;
                        uint16_t len;
                        uint16_t check;
                };
        };
};

#ifdef __cplusplus
}
#endif

#endif // _NETINET_UDP_H