]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Modify in6_pcbpurgeif0() to accept a pcbinfo structure rather than a pcb
authorRobert Watson <rwatson@FreeBSD.org>
Sun, 23 Apr 2006 15:06:16 +0000 (15:06 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Sun, 23 Apr 2006 15:06:16 +0000 (15:06 +0000)
commit04f2073775ab5c2b5b6d7cf853f66f44959d3826
tree268f011dc5e5edfc9869c10cea4131a82291fadb
parent9106a6d6b0bda6a6fadf24454565bf5f649ba42e
Modify in6_pcbpurgeif0() to accept a pcbinfo structure rather than a pcb
list head structure; this improves congruence to IPv4, and also allows
in6_pcbpurgeif0() to lock the pcbinfo.  Modify in6_pcbpurgeif0() to lock
the pcbinfo before iterating the pcb list, use queue(9)'s LIST_FOREACH()
for the iteration, and to lock individual inpcb's while manipulating
them.

MFC after: 3 months
sys/netinet6/in6_ifattach.c
sys/netinet6/in6_pcb.c
sys/netinet6/in6_pcb.h