- In dc_intr(), check IFF_RUNNING instead of IFF_UP; this closes a possible
commit94b5037cc5cf3113d606c4ef598e80458ae04f72
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 5 Aug 2008 11:23:01 +0000 (5 11:23 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 5 Aug 2008 11:23:01 +0000 (5 11:23 +0000)
tree9a3a311d2074dcce4d994bb75a2725fc72b8a394
parentff7ea5cac500266733eecae802484326b4955a44
- In dc_intr(), check IFF_RUNNING instead of IFF_UP; this closes a possible
  time window between IFF_UP is set but not IFF_RUNNING.
- In dc_ioctl(), don't program multicast filter, if NIC is not running yet.
  Add assertion in Xircom's multicast filter programming function to make
  sure that NIC is running.
- Don't set IFF_RUNNING in Xircom's multicast filter programming function.
- Move setting IFF_RUNNING before programming multicast filter; just to keep
  the IFF_RUNNING assertion work.  Add comment about it

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1106>
Tested-by: Tim <t-df@timdarby.net>
sys/dev/netif/dc/if_dc.c