4 Created: March 2001 by Philip Homburg <philip@f-mnx.phicoh.com>
6 Some internals of the UDP module
9 #define UDP_FD_NR (4*IP_PORT_MAX)
10 #define UDP_PORT_HASH_NR 16 /* Must be a power of 2 */
12 typedef struct udp_port
20 struct udp_fd
*up_next_fd
;
21 struct udp_fd
*up_write_fd
;
22 struct udp_fd
*up_port_any
;
23 struct udp_fd
*up_port_hash
[UDP_PORT_HASH_NR
];
27 #define UPF_WRITE_IP 0x1
28 #define UPF_WRITE_SP 0x2
29 #define UPF_READ_IP 0x4
30 #define UPF_READ_SP 0x8
31 #define UPF_SUSPEND 0x10
32 #define UPF_MORE2WRITE 0x20
35 #define UPS_SETPROTO 1
46 nwio_udpopt_t uf_udpopt
;
47 get_userdata_t uf_get_userdata
;
48 put_userdata_t uf_put_userdata
;
49 select_res_t uf_select_res
;
55 struct udp_fd
*uf_port_next
;
60 #define UFF_IOCTL_IP 0x2
61 #define UFF_READ_IP 0x4
62 #define UFF_WRITE_IP 0x8
63 #define UFF_OPTSET 0x10
64 #define UFF_PEEK_IP 0x20
65 #define UFF_SEL_READ 0x40
66 #define UFF_SEL_WRITE 0x80
68 EXTERN udp_port_t
*udp_port_table
;
69 EXTERN udp_fd_t udp_fd_table
[UDP_FD_NR
];
72 * $PchId: udp_int.h,v 1.4 2004/08/03 11:12:01 philip Exp $