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