if_ethersubr.c (533d8562e4442fb12845ba2100d0e92e01e9632f) if_ethersubr.c (588523fae35e4d3f99660fc33b1dc42b8ebf4dc5)
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

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

646 }
647 }
648
649 /* Discard packet if interface is not up */
650 if ((ifp->if_flags & IFF_UP) == 0) {
651 m_freem(m);
652 return;
653 }
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

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

646 }
647 }
648
649 /* Discard packet if interface is not up */
650 if ((ifp->if_flags & IFF_UP) == 0) {
651 m_freem(m);
652 return;
653 }
654 if (eh->ether_dhost[0] & 1) {
654 if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
655 if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
656 sizeof(etherbroadcastaddr)) == 0)
657 m->m_flags |= M_BCAST;
658 else
659 m->m_flags |= M_MCAST;
660 }
661 if (m->m_flags & (M_BCAST|M_MCAST))
662 ifp->if_imcasts++;

--- 384 unchanged lines hidden ---
655 if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
656 sizeof(etherbroadcastaddr)) == 0)
657 m->m_flags |= M_BCAST;
658 else
659 m->m_flags |= M_MCAST;
660 }
661 if (m->m_flags & (M_BCAST|M_MCAST))
662 ifp->if_imcasts++;

--- 384 unchanged lines hidden ---