Date: Sun, 18 Sep 2005 17:36:29 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if.c src/sys/netinet in.c in.h Message-ID: <200509181736.j8IHaTAM054996@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-09-18 17:36:29 UTC FreeBSD src repository Modified files: sys/net if.c sys/netinet in.c in.h Log: 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. MFC after: 3 days Revision Changes Path 1.247 +7 -0 src/sys/net/if.c 1.88 +12 -8 src/sys/netinet/in.c 1.92 +1 -0 src/sys/netinet/in.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509181736.j8IHaTAM054996>