root / lab4 / .minix-src / include / net / gen / udp_io.h @ 14
History | View | Annotate | Download (1.21 KB)
1 |
/*
|
---|---|
2 |
server/ip/gen/udp_io.h
|
3 |
*/
|
4 |
|
5 |
#ifndef __SERVER__IP__GEN__UDP_IO_H__
|
6 |
#define __SERVER__IP__GEN__UDP_IO_H__
|
7 |
|
8 |
typedef struct nwio_udpopt |
9 |
{ |
10 |
unsigned long nwuo_flags; |
11 |
udpport_t nwuo_locport; |
12 |
udpport_t nwuo_remport; |
13 |
ipaddr_t nwuo_locaddr; |
14 |
ipaddr_t nwuo_remaddr; |
15 |
} nwio_udpopt_t; |
16 |
|
17 |
#define NWUO_NOFLAGS 0x0000L |
18 |
#define NWUO_ACC_MASK 0x0003L |
19 |
#define NWUO_EXCL 0x00000001L |
20 |
#define NWUO_SHARED 0x00000002L |
21 |
#define NWUO_COPY 0x00000003L |
22 |
#define NWUO_LOCPORT_MASK 0x000CL |
23 |
#define NWUO_LP_SEL 0x00000004L |
24 |
#define NWUO_LP_SET 0x00000008L |
25 |
#define NWUO_LP_ANY 0x0000000CL |
26 |
#define NWUO_LOCADDR_MASK 0x0010L |
27 |
#define NWUO_EN_LOC 0x00000010L |
28 |
#define NWUO_DI_LOC 0x00100000L |
29 |
#define NWUO_BROAD_MASK 0x0020L |
30 |
#define NWUO_EN_BROAD 0x00000020L |
31 |
#define NWUO_DI_BROAD 0x00200000L |
32 |
#define NWUO_REMPORT_MASK 0x0100L |
33 |
#define NWUO_RP_SET 0x00000100L |
34 |
#define NWUO_RP_ANY 0x01000000L |
35 |
#define NWUO_REMADDR_MASK 0x0200L |
36 |
#define NWUO_RA_SET 0x00000200L |
37 |
#define NWUO_RA_ANY 0x02000000L |
38 |
#define NWUO_RW_MASK 0x1000L |
39 |
#define NWUO_RWDATONLY 0x00001000L |
40 |
#define NWUO_RWDATALL 0x10000000L |
41 |
#define NWUO_IPOPT_MASK 0x2000L |
42 |
#define NWUO_EN_IPOPT 0x00002000L |
43 |
#define NWUO_DI_IPOPT 0x20000000L |
44 |
|
45 |
#endif /* __SERVER__IP__GEN__UDP_IO_H__ */ |