34 #ifndef _NETINET_UDP_VAR_H_ 35 #define _NETINET_UDP_VAR_H_ 47 #define ui_next ui_i.ih_next 48 #define ui_prev ui_i.ih_prev 49 #define ui_x1 ui_i.ih_x1 50 #define ui_pr ui_i.ih_pr 51 #define ui_len ui_i.ih_len 52 #define ui_src ui_i.ih_src 53 #define ui_dst ui_i.ih_dst 54 #define ui_sport ui_u.uh_sport 55 #define ui_dport ui_u.uh_dport 56 #define ui_ulen ui_u.uh_ulen 57 #define ui_sum ui_u.uh_sum 66 u_long udps_noportbcast;
68 u_long udpps_pcbcachemiss;
69 u_long udpps_pcbhashmiss;
77 #define UDPCTL_CHECKSUM 1 78 #define UDPCTL_STATS 2 79 #define UDPCTL_MAXDGRAM 3 80 #define UDPCTL_RECVSPACE 4 81 #define UDPCTL_PCBLIST 5 82 #define UDPCTL_MAXID 6 84 #define UDPCTL_NAMES { \ 86 { "checksum", CTLTYPE_INT }, \ 87 { "stats", CTLTYPE_STRUCT }, \ 88 { "maxdgram", CTLTYPE_INT }, \ 89 { "recvspace", CTLTYPE_INT }, \ 93 SYSCTL_DECL(_net_inet_udp);
95 extern struct inpcbhead udb;
97 extern struct udpstat udpstat;
99 void udp_ctlinput(
int,
struct sockaddr *,
void *);
101 void udp_input(
struct mbuf *,
int);
102 int udp_usrreq(
struct socket *,
Definition: socketvar.h:49