1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

use ETHER_IS_MULTICAST instead of explicit check

This commit is contained in:
Sam Leffler 2003-08-19 17:04:13 +00:00
parent 0143cfd730
commit 588523fae3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119131

View File

@ -651,7 +651,7 @@ ether_demux(struct ifnet *ifp, struct mbuf *m)
m_freem(m);
return;
}
if (eh->ether_dhost[0] & 1) {
if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
sizeof(etherbroadcastaddr)) == 0)
m->m_flags |= M_BCAST;