rwatson a15c06842e 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 <gavin dot atkinson at ury dot york dot ac dot uk>

Approved by:	re (scottl)
2005-09-29 20:57:07 +00:00
..
2005-07-11 03:16:23 +00:00
2004-10-05 19:28:52 +00:00
2005-09-25 20:36:02 +00:00
2005-05-06 02:50:00 +00:00
2005-08-19 14:52:21 +00:00
2005-09-20 13:44:36 +00:00
2005-08-25 05:02:28 +00:00
2005-01-11 07:08:15 +00:00
2005-09-26 14:59:12 +00:00
2005-09-20 01:59:54 +00:00