From owner-cvs-src@FreeBSD.ORG Thu Sep 29 20:57:08 2005 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 A1B4A16A41F; Thu, 29 Sep 2005 20:57:08 +0000 (GMT) (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 7375F43D48; Thu, 29 Sep 2005 20:57:08 +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 j8TKv8ZS076043; Thu, 29 Sep 2005 20:57:08 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8TKv8U0076042; Thu, 29 Sep 2005 20:57:08 GMT (envelope-from rwatson) Message-Id: <200509292057.j8TKv8U0076042@repoman.freebsd.org> From: Robert Watson Date: Thu, 29 Sep 2005 20:57:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/net if.c src/sys/netinet in.c in.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: Thu, 29 Sep 2005 20:57:08 -0000 rwatson 2005-09-29 20:57:07 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/net if.c sys/netinet in.c in.h Log: Merge if.c:1.247, in.c:1.88, in.h:1.92 from HEAD to RELENG_6: Take a first cut at cleaning up ifnet removal and multicast socket panics, which occur when stale ifnet pointers are left in struct moptions hung off of inpcbs: - Add in_ifdetach(), which matches in6_ifdetach(), and allows the protocol to perform early tear-down on the interface early in if_detach(). - Annotate that if_detach() needs careful consideration. - Remove calls to in_pcbpurgeif0() in the handling of SIOCDIFADDR -- this is not the place to detect interface removal! This also removes what is basically a nasty (and now unnecessary) hack. - Invoke in_pcbpurgeif0() from in_ifdetach(), in both raw and UDP IPv4 sockets. It is now possible to run the msocket_ifnet_remove regression test using HEAD without panicking. Reported by: Gavin Atkinson Approved by: re (scottl) Revision Changes Path 1.234.2.12 +7 -0 src/sys/net/if.c 1.85.2.3 +12 -8 src/sys/netinet/in.c 1.90.2.1 +1 -0 src/sys/netinet/in.h