projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a14bc06
)
Use ETHER_IS_MULTICAST, which is more expressive.
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 5 Apr 2009 02:57:27 +0000 (10:57 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 5 Apr 2009 02:57:27 +0000 (10:57 +0800)
sys/net/if_ethersubr.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/net/if_ethersubr.c
b/sys/net/if_ethersubr.c
index
79a23e1
..
26b14be
100644
(file)
--- a/
sys/net/if_ethersubr.c
+++ b/
sys/net/if_ethersubr.c
@@
-1150,7
+1150,7
@@
ether_demux_oncpu(struct ifnet *ifp, struct mbuf *m)
* happen when the interface is in promiscuous mode.
*/
if (((ifp->if_flags & (IFF_PROMISC | IFF_PPROMISC)) == IFF_PROMISC) &&
- (eh->ether_dhost[0] & 1) == 0 &&
+ !ETHER_IS_MULTICAST(eh->ether_dhost) &&
bcmp(eh->ether_dhost, IFP2AC(ifp)->ac_enaddr, ETHER_ADDR_LEN)) {
m_freem(m);
return;