From owner-cvs-src@FreeBSD.ORG Sun Apr 23 15:06:17 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10ED516A402; Sun, 23 Apr 2006 15:06:17 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3EC243D48; Sun, 23 Apr 2006 15:06:16 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3NF6Gao063760; Sun, 23 Apr 2006 15:06:16 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3NF6GwD063749; Sun, 23 Apr 2006 15:06:16 GMT (envelope-from rwatson) Message-Id: <200604231506.k3NF6GwD063749@repoman.freebsd.org> From: Robert Watson Date: Sun, 23 Apr 2006 15:06:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netinet6 in6_ifattach.c in6_pcb.c in6_pcb.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 15:06:17 -0000 rwatson 2006-04-23 15:06:16 UTC FreeBSD src repository Modified files: sys/netinet6 in6_ifattach.c in6_pcb.c in6_pcb.h Log: 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 Revision Changes Path 1.32 +2 -4 src/sys/netinet6/in6_ifattach.c 1.69 +7 -3 src/sys/netinet6/in6_pcb.c 1.18 +1 -1 src/sys/netinet6/in6_pcb.h