Lines Matching refs:eh
518 * eh Ethernet header of the incoming packet.
532 bridge_in(struct ifnet *ifp, struct ether_header *eh)
541 index= HASH_FN(eh->ether_shost);
547 if (!BDG_MATCH( eh->ether_shost, bdg_table[index].etheraddr) ) {
561 bdg_loops, eh->ether_shost, ".",
578 eh->ether_shost, ".", index, ifp->if_name, ifp->if_unit);)
579 bcopy(eh->ether_shost, bdg_table[index].etheraddr, 6);
582 dst = bridge_dst_lookup(eh);
633 * XXX be careful about eh, it can be a pointer into *m
636 bdg_forward(struct mbuf *m0, struct ether_header *const eh, struct ifnet *dst)
649 * XXX eh is usually a pointer within the mbuf (some ethernet drivers
653 struct ether_header save_eh = *eh ;
667 dst = bridge_dst_lookup(eh);
753 * case of eh pointing already into the original mbuf.
766 if ( (void *)(eh + 1) == (void *)m->m_data) {
822 * Add header (optimized for the common case of eh pointing
826 if ( (void *)(eh + 1) == (void *)m->m_data) {