summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-03-22 19:08:39 +0000
committerbms <bms@FreeBSD.org>2007-03-22 19:08:39 +0000
commit317f57e707501b45a49b07d02e70a50293495a97 (patch)
tree62e68e571d8367e7d8685347127a63449318dbce
parentc06098a4065d7be63bd57c45889a91da9bc0f5e4 (diff)
downloadFreeBSD-src-317f57e707501b45a49b07d02e70a50293495a97.zip
FreeBSD-src-317f57e707501b45a49b07d02e70a50293495a97.tar.gz
Fix a typo, and update a comment.
Submitted by: yar
-rw-r--r--sys/net/if_ethersubr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index f5403bf..3c9cc8e 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -669,15 +669,14 @@ ether_input(struct ifnet *ifp, struct mbuf *m)
#endif
{
/*
- * If the frame was received promiscuously, set the
+ * If the frame received was not for our MAC address, set the
* M_PROMISC flag on the mbuf chain. The frame may need to
* be seen by the rest of the Ethernet input path in case of
* re-entry (e.g. bridge, vlan, netgraph) but should not be
* seen by upper protocol layers.
*/
if (!ETHER_IS_MULTICAST(eh->ether_dhost) &&
- (ifp->if_flags & IFF_PROMISC) != 0 &&
- !bcmp(IF_LLADDR(ifp), eh->ether_dhost, ETHER_ADDR_LEN))
+ bcmp(IF_LLADDR(ifp), eh->ether_dhost, ETHER_ADDR_LEN) != 0)
m->m_flags |= M_PROMISC;
}
OpenPOWER on IntegriCloud