if_ethersubr.c (86bd0491442e667469d72d133cf07945362f7dad) if_ethersubr.c (c495c9356770443e21a88170ddfc517826cfaadc)
1/*-
2 * Copyright (c) 1982, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 624 unchanged lines hidden (view full) ---

633 * re-entry (e.g. bridge, vlan, netgraph) but should not be
634 * seen by upper protocol layers.
635 */
636 if (!ETHER_IS_MULTICAST(eh->ether_dhost) &&
637 bcmp(IF_LLADDR(ifp), eh->ether_dhost, ETHER_ADDR_LEN) != 0)
638 m->m_flags |= M_PROMISC;
639 }
640
1/*-
2 * Copyright (c) 1982, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 624 unchanged lines hidden (view full) ---

633 * re-entry (e.g. bridge, vlan, netgraph) but should not be
634 * seen by upper protocol layers.
635 */
636 if (!ETHER_IS_MULTICAST(eh->ether_dhost) &&
637 bcmp(IF_LLADDR(ifp), eh->ether_dhost, ETHER_ADDR_LEN) != 0)
638 m->m_flags |= M_PROMISC;
639 }
640
641 /* First chunk of an mbuf contains good entropy */
642 if (harvest.ethernet)
641 if (harvest.ethernet)
643 random_harvest(m, 16, 3, 0, RANDOM_NET);
642 random_harvest(&(m->m_data), 12, 3, 0, RANDOM_NET_ETHER);
644
645 ether_demux(ifp, m);
646 CURVNET_RESTORE();
647}
648
649/*
650 * Ethernet input dispatch; by default, direct dispatch here regardless of
651 * global configuration.

--- 670 unchanged lines hidden ---
643
644 ether_demux(ifp, m);
645 CURVNET_RESTORE();
646}
647
648/*
649 * Ethernet input dispatch; by default, direct dispatch here regardless of
650 * global configuration.

--- 670 unchanged lines hidden ---