Submit #2792 ยป udp-detach.diff
| sys/netinet/udp_usrreq.c | ||
|---|---|---|
|
case IP_MULTICAST_LOOP:
|
||
|
case IP_ADD_MEMBERSHIP:
|
||
|
case IP_DROP_MEMBERSHIP:
|
||
|
if (&curthread->td_msgport != netisr_cpuport(0)) {
|
||
|
/*
|
||
|
* This pr_ctloutput msg will be forwarded
|
||
|
* to netisr0 to run; we can't do direct
|
||
|
* detaching anymore.
|
||
|
*/
|
||
|
inp->inp_flags &= ~INP_DIRECT_DETACH;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
}
|
||