| version 1.148, 2006/07/23 22:06:13 |
version 1.149, 2006/10/05 17:35:19 |
| Line 1186 udp_usrreq(struct socket *so, int req, s |
|
| Line 1186 udp_usrreq(struct socket *so, int req, s |
|
| return (in_control(so, (long)m, (caddr_t)nam, |
return (in_control(so, (long)m, (caddr_t)nam, |
| (struct ifnet *)control, l)); |
(struct ifnet *)control, l)); |
| |
|
| |
s = splsoftnet(); |
| |
|
| if (req == PRU_PURGEIF) { |
if (req == PRU_PURGEIF) { |
| in_pcbpurgeif0(&udbtable, (struct ifnet *)control); |
in_pcbpurgeif0(&udbtable, (struct ifnet *)control); |
| in_purgeif((struct ifnet *)control); |
in_purgeif((struct ifnet *)control); |
| in_pcbpurgeif(&udbtable, (struct ifnet *)control); |
in_pcbpurgeif(&udbtable, (struct ifnet *)control); |
| |
splx(s); |
| return (0); |
return (0); |
| } |
} |
| |
|
| s = splsoftnet(); |
|
| inp = sotoinpcb(so); |
inp = sotoinpcb(so); |
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| if (req != PRU_SEND && req != PRU_SENDOOB && control) |
if (req != PRU_SEND && req != PRU_SENDOOB && control) |