source: trunk/minix/include/net/gen/udp_hdr.h@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 464 bytes
Line 
1/*
2server/ip/gen/udp_hdr.h
3*/
4
5#ifndef __SERVER__IP__GEN__UDP_HDR_H__
6#define __SERVER__IP__GEN__UDP_HDR_H__
7
8typedef struct udp_hdr
9{
10 udpport_t uh_src_port;
11 udpport_t uh_dst_port;
12 u16_t uh_length;
13 u16_t uh_chksum;
14} udp_hdr_t;
15
16typedef struct udp_io_hdr
17{
18 ipaddr_t uih_src_addr;
19 ipaddr_t uih_dst_addr;
20 udpport_t uih_src_port;
21 udpport_t uih_dst_port;
22 u16_t uih_ip_opt_len;
23 u16_t uih_data_len;
24} udp_io_hdr_t;
25
26#endif /* __SERVER__IP__GEN__UDP_HDR_H__ */
Note: See TracBrowser for help on using the repository browser.