05480c229a
This patch moves further includes (the network part and lib.h) in common/. It is the last part to get the netbsd libc to compile under minix. Further moves will be needed as we get the netbsd libc to compile minix itself. Also, this patch add #ifndef's to termios.h, as it create problems with netbsd's namespace.h.
26 lines
464 B
C
26 lines
464 B
C
/*
|
|
server/ip/gen/udp_hdr.h
|
|
*/
|
|
|
|
#ifndef __SERVER__IP__GEN__UDP_HDR_H__
|
|
#define __SERVER__IP__GEN__UDP_HDR_H__
|
|
|
|
typedef struct udp_hdr
|
|
{
|
|
udpport_t uh_src_port;
|
|
udpport_t uh_dst_port;
|
|
u16_t uh_length;
|
|
u16_t uh_chksum;
|
|
} udp_hdr_t;
|
|
|
|
typedef struct udp_io_hdr
|
|
{
|
|
ipaddr_t uih_src_addr;
|
|
ipaddr_t uih_dst_addr;
|
|
udpport_t uih_src_port;
|
|
udpport_t uih_dst_port;
|
|
u16_t uih_ip_opt_len;
|
|
u16_t uih_data_len;
|
|
} udp_io_hdr_t;
|
|
|
|
#endif /* __SERVER__IP__GEN__UDP_HDR_H__ */
|