xref: /minix3/minix/include/net/gen/udp_hdr.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc /*
2*433d6423SLionel Sambuc server/ip/gen/udp_hdr.h
3*433d6423SLionel Sambuc */
4*433d6423SLionel Sambuc 
5*433d6423SLionel Sambuc #ifndef __SERVER__IP__GEN__UDP_HDR_H__
6*433d6423SLionel Sambuc #define __SERVER__IP__GEN__UDP_HDR_H__
7*433d6423SLionel Sambuc 
8*433d6423SLionel Sambuc /*
9*433d6423SLionel Sambuc  * Included for compatibility with programs which assume udp_io_hdr_t to be
10*433d6423SLionel Sambuc  * defined in this header file
11*433d6423SLionel Sambuc  */
12*433d6423SLionel Sambuc #include "udp_io_hdr.h"
13*433d6423SLionel Sambuc 
14*433d6423SLionel Sambuc typedef struct udp_hdr
15*433d6423SLionel Sambuc {
16*433d6423SLionel Sambuc 	udpport_t uh_src_port;
17*433d6423SLionel Sambuc 	udpport_t uh_dst_port;
18*433d6423SLionel Sambuc 	u16_t uh_length;
19*433d6423SLionel Sambuc 	u16_t uh_chksum;
20*433d6423SLionel Sambuc } udp_hdr_t;
21*433d6423SLionel Sambuc 
22*433d6423SLionel Sambuc #endif /* __SERVER__IP__GEN__UDP_HDR_H__ */
23