thompsa b24c9f9f85 MFC: if_bridge, r1.20
> Fix a panic in softclock() if the interface is destroyed with a bpf consumer
> attached.
>
> This is caused by bpf_detachd clearing IFF_PROMISC on the interface which does
> a SIOCSIFFLAGS ioctl. The problem here is that while the interface has been
> stopped, IFF_UP has not been cleared so IFF_UP != IFF_DRV_RUNNING, this causes
> the ioctl function to init() the interface which resets the callouts.
>
> The destroy then completes and frees the softc but softclock will panic on a
> dead callout pointer.
>
> Ensure ifp->if_flags matches reality by clearing IFF_UP when we destroy.

Approved by:	re (kensmith), mlaier (mentor)
2005-08-30 20:30:44 +00:00
..
2005-08-19 04:52:02 +00:00
2005-07-11 03:16:23 +00:00
2004-10-05 19:28:52 +00:00
2005-08-30 20:30:44 +00:00
2005-08-30 16:43:24 +00:00
2005-05-06 02:50:00 +00:00
2005-08-19 14:52:21 +00:00
2005-08-25 05:44:06 +00:00
2005-08-25 05:02:28 +00:00
2005-01-11 07:08:15 +00:00