mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
use ETHER_IS_MULTICAST instead of explicit check
This commit is contained in:
parent
0143cfd730
commit
588523fae3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119131
@ -651,7 +651,7 @@ ether_demux(struct ifnet *ifp, struct mbuf *m)
|
|||||||
m_freem(m);
|
m_freem(m);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (eh->ether_dhost[0] & 1) {
|
if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
|
||||||
if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
|
if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
|
||||||
sizeof(etherbroadcastaddr)) == 0)
|
sizeof(etherbroadcastaddr)) == 0)
|
||||||
m->m_flags |= M_BCAST;
|
m->m_flags |= M_BCAST;
|
||||||
|
Loading…
Reference in New Issue
Block a user