Lines Matching defs:eh

813 	struct ether_header *eh;
821 if (m->m_len < sizeof(*eh)) {
822 m = m_pullup(m, sizeof(*eh));
857 eh = mtod(m, struct ether_header *);
858 if (!ETHER_IS_MULTICAST(eh->ether_dhost)) {
861 dst = (struct ether_addr *)&eh->ether_dhost[0];
894 if (bridge_filterrule(&bif->bif_brlout, eh, m) ==
968 struct ether_header eh;
980 m_copydata(m, 0, ETHER_HDR_LEN, &eh);
981 dst = (struct ether_addr *)&eh.ether_dhost[0];
982 src = (struct ether_addr *)&eh.ether_shost[0];
989 !ETHER_IS_MULTICAST(eh.ether_shost) &&
990 !ETHER_IS_ANYADDR(eh.ether_shost))
1008 if (!ETHER_IS_MULTICAST(eh.ether_dhost)) {
1015 if (ETHER_IS_BROADCAST(eh.ether_dhost))
1051 if (bif->bif_flags & IFBIF_BLOCKNONIP && bridge_blocknonip(&eh, m)) {
1056 if (bridge_filterrule(&bif->bif_brlin, &eh, m) == BRL_ACTION_BLOCK) {
1060 m = bridge_ip(&sc->sc_if, BRIDGE_IN, src_if, &eh, m);
1069 bridge_broadcast(sc, src_if, &eh, m);
1094 if (bridge_filterrule(&bif->bif_brlout, &eh, m) == BRL_ACTION_BLOCK)
1096 m = bridge_ip(&sc->sc_if, BRIDGE_OUT, dst_if, &eh, m);
1107 bridge_fragment(&sc->sc_if, dst_if, &eh, m);
1161 struct ether_header *eh;
1173 if (m->m_pkthdr.len < sizeof(*eh))
1194 eh = mtod(m, struct ether_header *);
1199 if (memcmp(ac->ac_enaddr, eh->ether_shost, ETHER_ADDR_LEN) == 0)
1209 if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
1217 if (memcmp(eh->ether_dhost, bstp_etheraddr,
1219 if (eh->ether_dhost[ETHER_ADDR_LEN - 1] == 0) {
1221 m = bstp_input(sc->sc_stp, bif0->bif_stp, eh,
1225 } else if (eh->ether_dhost[ETHER_ADDR_LEN - 1] <= 0xf)
1250 if (bridge_ourether(bif0->ifp, eh->ether_dhost)) {
1256 if (bridge_ourether(bif->ifp, eh->ether_dhost))
1263 (struct ether_addr *)&eh->ether_shost,
1265 if (bridge_filterrule(&bif0->bif_brlin, eh, m) ==
1296 struct ether_header *eh, struct mbuf *m)
1324 bridge_blocknonip(eh, m))
1334 if (bridge_filterrule(&bif->bif_brlout, eh, m) ==
1345 if (bridge_localbroadcast(dst_if, eh, m))
1360 mc = bridge_ip(&sc->sc_if, BRIDGE_OUT, dst_if, eh, mc);
1371 bridge_fragment(&sc->sc_if, dst_if, eh, mc);
1382 bridge_localbroadcast(struct ifnet *ifp, struct ether_header *eh,
1392 etype = ntohs(eh->ether_type);
1450 bridge_blocknonip(struct ether_header *eh, struct mbuf *m)
1463 etype = ntohs(eh->ether_type);
1498 bridge_ipsec(struct ifnet *ifp, struct ether_header *eh, int hassnap,
1644 bridge_send_icmp_err(ifp, eh, m,
1670 struct ether_header *eh, struct mbuf *m)
1683 etype = ntohs(eh->ether_type);
1723 bridge_ipsec(ifp, eh, hassnap, &llc, dir, AF_INET, hlen, m))
1765 bridge_ipsec(ifp, eh, hassnap, &llc, dir, AF_INET6, hlen,
1806 M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
1809 bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
1819 bridge_fragment(struct ifnet *brifp, struct ifnet *ifp, struct ether_header *eh,
1829 etype = ntohs(eh->ether_type);
1876 bridge_send_icmp_err(ifp, eh, m, hassnap, &llc,
1894 M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
1899 bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
1949 struct ether_header *eh, struct mbuf *n, int hassnap, struct llc *llc,
1993 bcopy(&eh->ether_dhost, &ether_tmp, sizeof(ether_tmp));
1994 bcopy(&eh->ether_shost, &eh->ether_dhost, sizeof(ether_tmp));
1995 bcopy(&ether_tmp, &eh->ether_shost, sizeof(ether_tmp));
2006 M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
2009 bcopy(eh, mtod(m, caddr_t), sizeof(*eh));