|
|
1.1 root 1: /* udp_var.h 6.1 83/07/29 */
2:
3: /*
4: * UDP kernel structures and variables.
5: */
6: struct udpiphdr {
7: struct ipovly ui_i; /* overlaid ip structure */
8: struct udphdr ui_u; /* udp header */
9: };
10: #define ui_next ui_i.ih_next
11: #define ui_prev ui_i.ih_prev
12: #define ui_x1 ui_i.ih_x1
13: #define ui_pr ui_i.ih_pr
14: #define ui_len ui_i.ih_len
15: #define ui_src ui_i.ih_src
16: #define ui_dst ui_i.ih_dst
17: #define ui_sport ui_u.uh_sport
18: #define ui_dport ui_u.uh_dport
19: #define ui_ulen ui_u.uh_ulen
20: #define ui_sum ui_u.uh_sum
21:
22: struct udpstat {
23: int udps_hdrops;
24: int udps_badsum;
25: int udps_badlen;
26: };
27:
28: #ifdef KERNEL
29: /*
30: struct inpcb udb;
31: */
32: struct udpstat udpstat;
33: #endif
34:
35: /* sizeof largest udp message (at ip level) */
36: #define UDP_MSG_LIMIT (UDP_BODY_LIMIT+sizeof(struct udpiphdr))
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.