Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet6/in6_pcb.c
Show First 20 Lines • Show All 883 Lines • ▼ Show 20 Lines | in6_pcblookup_lbgroup(const struct inpcbinfo *pcbinfo, | ||||
* Order of socket selection: | * Order of socket selection: | ||||
* 1. non-wild. | * 1. non-wild. | ||||
* 2. wild (if lookupflags contains INPLOOKUP_WILDCARD). | * 2. wild (if lookupflags contains INPLOOKUP_WILDCARD). | ||||
* | * | ||||
* NOTE: | * NOTE: | ||||
* - Load balanced group does not contain jailed sockets. | * - Load balanced group does not contain jailed sockets. | ||||
* - Load balanced does not contain IPv4 mapped INET6 wild sockets. | * - Load balanced does not contain IPv4 mapped INET6 wild sockets. | ||||
*/ | */ | ||||
LIST_FOREACH(grp, hdr, il_list) { | CK_LIST_FOREACH(grp, hdr, il_list) { | ||||
#ifdef INET | #ifdef INET | ||||
if (!(grp->il_vflag & INP_IPV6)) | if (!(grp->il_vflag & INP_IPV6)) | ||||
continue; | continue; | ||||
#endif | #endif | ||||
if (grp->il_lport == lport) { | if (grp->il_lport == lport) { | ||||
idx = 0; | idx = 0; | ||||
int pkt_hash = INP_PCBLBGROUP_PKTHASH( | int pkt_hash = INP_PCBLBGROUP_PKTHASH( | ||||
INP6_PCBHASHKEY(faddr), lport, fport); | INP6_PCBHASHKEY(faddr), lport, fport); | ||||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |