1 /* udp_var.h 4.3 81/11/18 */ 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 struct inpcb udb; 30 struct udpstat udpstat; 31 #endif 32