[DragonFlyBSD - Submit #2792] (New) multicast UDP detach

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Feb 24 03:28:45 PST 2015

Issue #2792 has been reported by yellowrabbit2010.

Submit #2792: multicast UDP detach

* Author: yellowrabbit2010
* Status: New
* Priority: Normal
* Assignee: 
* Category: Networking
* Target version: 
I think line 271 in sys/netinet/udp_usrreq.c is unwanted
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;

because of lines  1648--       Here we can hit "has mcast options" panic if &curthread->td_msgport was netisr_cpuport(0)
if (inp->inp_flags & INP_DIRECT_DETACH) {
                 * Direct detaching is allowed
                KASSERT((inp->inp_flags & INP_WILDCARD) == 0,
                    ("in the wildcardhash"));
                KASSERT(inp->inp_moptions == NULL, ("has mcast options"));

The patch removes 'if' statement, so no more fast detach for multicast udp.

udp-detach.diff (551 Bytes)

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Submit mailing list