Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/udp_usrreq.c
Show First 20 Lines • Show All 606 Lines • ▼ Show 20 Lines | #endif | ||||
* Don't look for additional matches if this one does | * Don't look for additional matches if this one does | ||||
* not have either the SO_REUSEPORT or SO_REUSEADDR | * not have either the SO_REUSEPORT or SO_REUSEADDR | ||||
* socket options set. This heuristic avoids | * socket options set. This heuristic avoids | ||||
* searching through all pcbs in the common case of a | * searching through all pcbs in the common case of a | ||||
* non-shared port. It assumes that an application | * non-shared port. It assumes that an application | ||||
* will never clear these options after setting them. | * will never clear these options after setting them. | ||||
*/ | */ | ||||
if ((last->inp_socket->so_options & | if ((last->inp_socket->so_options & | ||||
(SO_REUSEPORT|SO_REUSEADDR)) == 0) | (SO_REUSEPORT|SO_REUSEPORT_LB|SO_REUSEADDR)) == 0) | ||||
break; | break; | ||||
} | } | ||||
if (last == NULL) { | if (last == NULL) { | ||||
/* | /* | ||||
* No matching pcb found; discard datagram. (No need | * No matching pcb found; discard datagram. (No need | ||||
* to send an ICMP Port Unreachable for a broadcast | * to send an ICMP Port Unreachable for a broadcast | ||||
* or multicast datgram.) | * or multicast datgram.) | ||||
▲ Show 20 Lines • Show All 1,172 Lines • Show Last 20 Lines |