Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_pcb.c
Show First 20 Lines • Show All 1,803 Lines • ▼ Show 20 Lines | if ((inp->inp_vflag & INP_IPV4) && | ||||
IN_MULTI_LOCK_ASSERT(); | IN_MULTI_LOCK_ASSERT(); | ||||
in_leavegroup_locked(imo->imo_membership[i], NULL); | in_leavegroup_locked(imo->imo_membership[i], NULL); | ||||
gap++; | gap++; | ||||
} else if (gap != 0) | } else if (gap != 0) | ||||
imo->imo_membership[i - gap] = | imo->imo_membership[i - gap] = | ||||
imo->imo_membership[i]; | imo->imo_membership[i]; | ||||
} | } | ||||
imo->imo_num_memberships -= gap; | imo->imo_num_memberships -= gap; | ||||
if (imo->imo_num_memberships) | |||||
MPASS(imo->imo_membership[0]); | |||||
} | } | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
} | } | ||||
INP_INFO_WUNLOCK(pcbinfo); | INP_INFO_WUNLOCK(pcbinfo); | ||||
} | } | ||||
/* | /* | ||||
* Lookup a PCB based on the local address and port. Caller must hold the | * Lookup a PCB based on the local address and port. Caller must hold the | ||||
▲ Show 20 Lines • Show All 1,612 Lines • Show Last 20 Lines |