version 1.103.2.9, 2005/04/01 14:31:50 |
version 1.133, 2005/03/10 05:43:26 |
Line 1116 int udp_recvspace = 40 * (1024 + sizeof( |
|
Line 1116 int udp_recvspace = 40 * (1024 + sizeof( |
|
/*ARGSUSED*/ |
/*ARGSUSED*/ |
int |
int |
udp_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, |
udp_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, |
struct mbuf *control, struct lwp *l) |
struct mbuf *control, struct proc *p) |
{ |
{ |
struct inpcb *inp; |
struct inpcb *inp; |
struct proc *p; |
|
int s; |
int s; |
int error = 0; |
int error = 0; |
|
|
p = l ? l->l_proc : NULL; |
|
if (req == PRU_CONTROL) |
if (req == PRU_CONTROL) |
return (in_control(so, (long)m, (caddr_t)nam, |
return (in_control(so, (long)m, (caddr_t)nam, |
(struct ifnet *)control, p)); |
(struct ifnet *)control, p)); |
Line 1338 SYSCTL_SETUP(sysctl_net_inet_udp_setup, |
|
Line 1336 SYSCTL_SETUP(sysctl_net_inet_udp_setup, |
|
CTL_EOL); |
CTL_EOL); |
sysctl_createv(clog, 0, NULL, NULL, |
sysctl_createv(clog, 0, NULL, NULL, |
CTLFLAG_PERMANENT, |
CTLFLAG_PERMANENT, |
CTLTYPE_STRUCT, "pcblist", |
CTLTYPE_NODE, "pcblist", |
SYSCTL_DESCR("UDP protocol control block list"), |
SYSCTL_DESCR("UDP protocol control block list"), |
sysctl_inpcblist, 0, &udbtable, 0, |
sysctl_inpcblist, 0, &udbtable, 0, |
CTL_NET, PF_INET, IPPROTO_UDP, CTL_CREATE, |
CTL_NET, PF_INET, IPPROTO_UDP, CTL_CREATE, |