eh 244 arch/i386/stand/installboot/installboot.c Elf_Ehdr eh;
eh 251 arch/i386/stand/installboot/installboot.c if (read(fd, &eh, sizeof(eh)) != sizeof(eh))
eh 254 arch/i386/stand/installboot/installboot.c if (!IS_ELF(eh))
eh 257 arch/i386/stand/installboot/installboot.c eh.e_ident[EI_MAG0], eh.e_ident[EI_MAG1],
eh 258 arch/i386/stand/installboot/installboot.c eh.e_ident[EI_MAG2], eh.e_ident[EI_MAG3]);
eh 267 arch/i386/stand/installboot/installboot.c if (eh.e_phnum != 1)
eh 269 arch/i386/stand/installboot/installboot.c boot, eh.e_phnum);
eh 271 arch/i386/stand/installboot/installboot.c phsize = eh.e_phnum * sizeof(Elf_Phdr);
eh 276 arch/i386/stand/installboot/installboot.c lseek(fd, eh.e_phoff, SEEK_SET);
eh 301 arch/i386/stand/installboot/installboot.c fprintf(stderr, "%s: entry point %#x\n", fname, eh.e_entry);
eh 363 arch/i386/stand/installboot/installboot.c if (read(fd, &eh, sizeof(eh)) != sizeof(eh))
eh 366 arch/i386/stand/installboot/installboot.c if (!IS_ELF(eh)) {
eh 369 arch/i386/stand/installboot/installboot.c eh.e_ident[EI_MAG0], eh.e_ident[EI_MAG1],
eh 370 arch/i386/stand/installboot/installboot.c eh.e_ident[EI_MAG2], eh.e_ident[EI_MAG3]);
eh 164 compat/freebsd/freebsd_exec.c Elf32_Ehdr *eh = epp->ep_hdr;
eh 172 compat/freebsd/freebsd_exec.c if (eh->e_ident[EI_OSABI] != ELFOSABI_FREEBSD) {
eh 173 compat/freebsd/freebsd_exec.c brand = elf32_check_brand(eh);
eh 480 compat/linux/linux_exec.c Elf32_Ehdr *eh = epp->ep_hdr;
eh 485 compat/linux/linux_exec.c brand = elf32_check_brand(eh);
eh 556 dev/ic/aac.c EVENTHANDLER_DEREGISTER(shutdown_final, sc->eh);
eh 950 dev/ic/acx.c struct ether_header *eh;
eh 971 dev/ic/acx.c eh = mtod(m, struct ether_header *);
eh 449 dev/ic/am7990.c struct ether_header *eh;
eh 488 dev/ic/am7990.c eh = mtod(m, struct ether_header *);
eh 489 dev/ic/am7990.c if (ETHER_CMP(eh->ether_dhost, sc->sc_arpcom.ac_enaddr) &&
eh 490 dev/ic/am7990.c ETHER_CMP(eh->ether_dhost, etherbroadcastaddr)) {
eh 951 dev/ic/am7990.c struct ether_header eh;
eh 962 dev/ic/am7990.c if (len >= sizeof(eh)) {
eh 963 dev/ic/am7990.c (*sc->sc_copyfrombuf)(sc, &eh, LE_RBUFADDR(sc, no), sizeof(eh));
eh 965 dev/ic/am7990.c ether_sprintf(eh.ether_dhost));
eh 966 dev/ic/am7990.c printf(" src %s type %04x\n", ether_sprintf(eh.ether_shost),
eh 967 dev/ic/am7990.c ntohs(eh.ether_type));
eh 978 dev/ic/am7990.c struct ether_header eh;
eh 989 dev/ic/am7990.c if (len >= sizeof(eh)) {
eh 990 dev/ic/am7990.c (*sc->sc_copyfrombuf)(sc, &eh, LE_TBUFADDR(sc, no), sizeof(eh));
eh 992 dev/ic/am7990.c ether_sprintf(eh.ether_dhost));
eh 993 dev/ic/am7990.c printf(" src %s type %04x\n", ether_sprintf(eh.ether_shost),
eh 994 dev/ic/am7990.c ntohs(eh.ether_type));
eh 1069 dev/ic/awi.c struct ether_header eh;
eh 1073 dev/ic/awi.c if (m0->m_len < sizeof(eh)) {
eh 1074 dev/ic/awi.c m0 = m_pullup(m0, sizeof(eh));
eh 1078 dev/ic/awi.c memcpy(&eh, mtod(m0, caddr_t), sizeof(eh));
eh 1086 dev/ic/awi.c llc->llc_snap.ether_type = eh.ether_type;
eh 1099 dev/ic/awi.c memcpy(wh->i_addr2, eh.ether_shost, ETHER_ADDR_LEN);
eh 1100 dev/ic/awi.c memcpy(wh->i_addr3, eh.ether_dhost, ETHER_ADDR_LEN);
eh 1103 dev/ic/awi.c memcpy(wh->i_addr1, eh.ether_dhost, ETHER_ADDR_LEN);
eh 1104 dev/ic/awi.c memcpy(wh->i_addr2, eh.ether_shost, ETHER_ADDR_LEN);
eh 1116 dev/ic/awi.c struct ether_header *eh;
eh 1131 dev/ic/awi.c m_adj(m0, sizeof(wh) + sizeof(*llc) - sizeof(*eh));
eh 1132 dev/ic/awi.c eh = mtod(m0, struct ether_header *);
eh 1135 dev/ic/awi.c memcpy(eh->ether_dhost, wh.i_addr1, ETHER_ADDR_LEN);
eh 1136 dev/ic/awi.c memcpy(eh->ether_shost, wh.i_addr2, ETHER_ADDR_LEN);
eh 1139 dev/ic/awi.c memcpy(eh->ether_dhost, wh.i_addr3, ETHER_ADDR_LEN);
eh 1140 dev/ic/awi.c memcpy(eh->ether_shost, wh.i_addr2, ETHER_ADDR_LEN);
eh 1143 dev/ic/awi.c memcpy(eh->ether_dhost, wh.i_addr1, ETHER_ADDR_LEN);
eh 1144 dev/ic/awi.c memcpy(eh->ether_shost, wh.i_addr3, ETHER_ADDR_LEN);
eh 915 dev/ic/gem.c struct ether_header *eh;
eh 976 dev/ic/gem.c eh = mtod(m, struct ether_header *);
eh 749 dev/ic/hme.c struct ether_header *eh;
eh 769 dev/ic/hme.c eh = mtod(m, struct ether_header *);
eh 770 dev/ic/hme.c if (eh->ether_type != htons(ETHERTYPE_IP))
eh 772 dev/ic/hme.c ip = (struct ip *)(eh + 1);
eh 984 dev/ic/i82596.c struct ether_header eh;
eh 989 dev/ic/i82596.c (sc->memcopyin)(sc, &eh, IE_RBUF_ADDR(sc, head),
eh 1040 dev/ic/i82596.c bcopy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
eh 1119 dev/ic/i82596.c struct ether_header *eh = mtod(m, struct ether_header *);
eh 1122 dev/ic/i82596.c sc->sc_dev.dv_xname, ether_sprintf(eh->ether_shost),
eh 1123 dev/ic/i82596.c (u_int)eh->ether_type, pktlen);
eh 546 dev/ic/if_wi.c struct ether_header *eh;
eh 678 dev/ic/if_wi.c eh = mtod(m, struct ether_header *);
eh 739 dev/ic/if_wi.c (char *)&eh->ether_dhost, ETHER_ADDR_LEN);
eh 741 dev/ic/if_wi.c (char *)&eh->ether_shost, ETHER_ADDR_LEN);
eh 743 dev/ic/if_wi.c (char *)&eh->ether_type, ETHER_TYPE_LEN);
eh 2458 dev/ic/if_wi.c struct ether_header *eh;
eh 2479 dev/ic/if_wi.c eh = mtod(m0, struct ether_header *);
eh 2482 dev/ic/if_wi.c if (!wihap_check_tx(&sc->wi_hostap_info, eh->ether_dhost,
eh 2488 dev/ic/if_wi.c ether_sprintf(eh->ether_dhost));
eh 2498 dev/ic/if_wi.c if (eh->ether_type == htons(ETHERTYPE_IP) ||
eh 2499 dev/ic/if_wi.c eh->ether_type == htons(ETHERTYPE_ARP) ||
eh 2500 dev/ic/if_wi.c eh->ether_type == htons(ETHERTYPE_REVARP) ||
eh 2501 dev/ic/if_wi.c eh->ether_type == htons(ETHERTYPE_IPV6)) {
eh 2502 dev/ic/if_wi.c bcopy((char *)&eh->ether_dhost,
eh 2509 dev/ic/if_wi.c bcopy((char *)&eh->ether_shost,
eh 2519 dev/ic/if_wi.c bcopy((char *)&eh->ether_dhost,
eh 2523 dev/ic/if_wi.c bcopy((char *)&eh->ether_shost,
eh 2525 dev/ic/if_wi.c bcopy((char *)&eh->ether_dhost,
eh 2527 dev/ic/if_wi.c bcopy((char *)&eh->ether_shost,
eh 2534 dev/ic/if_wi.c tx_frame.wi_type = eh->ether_type;
eh 270 dev/ic/lemac.c struct ether_header eh;
eh 273 dev/ic/lemac.c if (length - sizeof(eh) > ETHERMTU ||
eh 274 dev/ic/lemac.c length - sizeof(eh) < ETHERMIN) {
eh 279 dev/ic/lemac.c LEMAC_INSB(sc, LEMAC_REG_DAT, sizeof(eh), (void *)&eh);
eh 281 dev/ic/lemac.c LEMAC_GETBUF16(sc, offset, sizeof(eh) / 2, (void *)&eh);
eh 298 dev/ic/lemac.c bcopy((caddr_t)&eh, m->m_data, sizeof(eh));
eh 300 dev/ic/lemac.c LEMAC_INSB(sc, LEMAC_REG_DAT, length - sizeof(eh),
eh 301 dev/ic/lemac.c mtod(m, caddr_t) + sizeof(eh));
eh 303 dev/ic/lemac.c LEMAC_GETBUF16(sc, offset + sizeof(eh),
eh 304 dev/ic/lemac.c (length - sizeof(eh)) / 2,
eh 305 dev/ic/lemac.c (void *)(mtod(m, caddr_t) + sizeof(eh)));
eh 320 dev/ic/lemac.c if ((eh.ether_dhost[0] & 1) == 0 &&
eh 321 dev/ic/lemac.c !LEMAC_ADDREQUAL(eh.ether_dhost, sc->sc_arpcom.ac_enaddr)) {
eh 825 dev/ic/pgt.c pgt_ieee80211_encap(struct pgt_softc *sc, struct ether_header *eh,
eh 850 dev/ic/pgt.c *ni = ieee80211_find_node(ic, eh->ether_shost);
eh 858 dev/ic/pgt.c *ni = ieee80211_dup_bss(ic, eh->ether_shost);
eh 876 dev/ic/pgt.c snap->llc_snap.ether_type = eh->ether_type;
eh 886 dev/ic/pgt.c IEEE80211_ADDR_COPY(frame->i_addr1, eh->ether_dhost);
eh 888 dev/ic/pgt.c IEEE80211_ADDR_COPY(frame->i_addr3, eh->ether_shost);
eh 893 dev/ic/pgt.c IEEE80211_ADDR_COPY(frame->i_addr1, eh->ether_dhost);
eh 894 dev/ic/pgt.c IEEE80211_ADDR_COPY(frame->i_addr2, eh->ether_shost);
eh 901 dev/ic/pgt.c IEEE80211_ADDR_COPY(frame->i_addr2, eh->ether_shost);
eh 902 dev/ic/pgt.c IEEE80211_ADDR_COPY(frame->i_addr3, eh->ether_dhost);
eh 913 dev/ic/pgt.c struct ether_header eh;
eh 979 dev/ic/pgt.c memcpy(eh.ether_dhost, pra->pra_ether_dhost, ETHER_ADDR_LEN);
eh 980 dev/ic/pgt.c memcpy(eh.ether_shost, pra->pra_ether_shost, ETHER_ADDR_LEN);
eh 981 dev/ic/pgt.c eh.ether_type = pra->pra_ether_type;
eh 1012 dev/ic/pgt.c m = pgt_ieee80211_encap(sc, &eh, m, &ni);
eh 2217 dev/ic/pgt.c struct ether_header eh;
eh 2220 dev/ic/pgt.c bcopy(mtod(m, struct ether_header *), &eh,
eh 2221 dev/ic/pgt.c sizeof(eh));
eh 2222 dev/ic/pgt.c m_adj(m, sizeof(eh));
eh 2223 dev/ic/pgt.c m = pgt_ieee80211_encap(sc, &eh, m, NULL);
eh 640 dev/ic/re.c struct ether_header *eh;
eh 693 dev/ic/re.c eh = mtod(m0, struct ether_header *);
eh 694 dev/ic/re.c bcopy ((char *)&dst, eh->ether_dhost, ETHER_ADDR_LEN);
eh 695 dev/ic/re.c bcopy ((char *)&src, eh->ether_shost, ETHER_ADDR_LEN);
eh 696 dev/ic/re.c eh->ether_type = htons(ETHERTYPE_IP);
eh 743 dev/ic/re.c eh = mtod(m0, struct ether_header *);
eh 761 dev/ic/re.c if (bcmp((char *)&eh->ether_dhost, (char *)&dst, ETHER_ADDR_LEN) ||
eh 762 dev/ic/re.c bcmp((char *)&eh->ether_shost, (char *)&src, ETHER_ADDR_LEN) ||
eh 763 dev/ic/re.c ntohs(eh->ether_type) != ETHERTYPE_IP) {
eh 770 dev/ic/re.c ether_sprintf(eh->ether_dhost));
eh 771 dev/ic/re.c printf("/%s/0x%x\n", ether_sprintf(eh->ether_shost),
eh 772 dev/ic/re.c ntohs(eh->ether_type));
eh 742 dev/isa/if_ex.c if ((eh->ether_dhost[5] != 0xff) ||
eh 743 dev/isa/if_ex.c (eh->ether_dhost[0] != 0xff)) {
eh 744 dev/isa/if_ex.c printf("Receive packet with %d data bytes: %6D -> ", QQQ, eh->ether_shost, ":");
eh 745 dev/isa/if_ex.c printf("%6D\n", eh->ether_dhost, ":");
eh 1029 dev/isa/if_ie.c check_eh(sc, eh, to_bpf)
eh 1031 dev/isa/if_ie.c struct ether_header *eh;
eh 1045 dev/isa/if_ie.c if (eh->ether_dhost[0] & 1)
eh 1047 dev/isa/if_ie.c if (ether_equal(eh->ether_dhost, sc->sc_arpcom.ac_enaddr))
eh 1062 dev/isa/if_ie.c if (ether_equal(eh->ether_dhost, sc->sc_arpcom.ac_enaddr))
eh 1073 dev/isa/if_ie.c if (!(eh->ether_dhost[0] & 1))
eh 1081 dev/isa/if_ie.c if (ether_equal(eh->ether_dhost, (u_char *)&sc->mcast_addrs[i])) {
eh 1103 dev/isa/if_ie.c if (eh->ether_dhost[0] & 1)
eh 1107 dev/isa/if_ie.c if (ether_equal(eh->ether_dhost, sc->sc_arpcom.ac_enaddr))
eh 1353 dev/isa/if_ie.c struct ether_header eh;
eh 1369 dev/isa/if_ie.c m = ieget(sc, &eh, &bpf_gets_it);
eh 1371 dev/isa/if_ie.c m = ieget(sc, &eh, 0);
eh 1383 dev/isa/if_ie.c ether_sprintf(eh.ether_shost), (u_int)eh.ether_type);
eh 3902 dev/pci/if_bnx.c struct ether_header *eh;
eh 3903 dev/pci/if_bnx.c eh = mtod(m, struct ether_header *);
eh 3905 dev/pci/if_bnx.c __FUNCTION__, eh->ether_dhost, ":",
eh 3906 dev/pci/if_bnx.c eh->ether_shost, ":", htons(eh->ether_type)));
eh 1823 dev/pci/if_sk.c struct ether_header *eh;
eh 1831 dev/pci/if_sk.c if (plen < sizeof(*eh))
eh 1833 dev/pci/if_sk.c eh = (struct ether_header *)pp;
eh 1836 dev/pci/if_sk.c if (eh->ether_type == htons(ETHERTYPE_VLAN)) {
eh 1848 dev/pci/if_sk.c } else if (eh->ether_type != htons(ETHERTYPE_IP))
eh 1851 dev/pci/if_sk.c pp += sizeof(*eh);
eh 1852 dev/pci/if_sk.c plen -= sizeof(*eh);
eh 1116 dev/pci/if_tl.c struct ether_header *eh;
eh 1146 dev/pci/if_tl.c eh = mtod(m, struct ether_header *);
eh 1156 dev/pci/if_tl.c if (!bcmp(eh->ether_shost, sc->arpcom.ac_enaddr,
eh 646 dev/pcmcia/if_cnw.c struct ether_header *eh;
eh 678 dev/pcmcia/if_cnw.c eh = mtod(m, struct ether_header *);
eh 679 dev/pcmcia/if_cnw.c if ((eh->ether_dhost[0] & 1) == 0 && /* !mcast and !bcast */
eh 680 dev/pcmcia/if_cnw.c bcmp(sc->sc_arpcom.ac_enaddr, eh->ether_dhost,
eh 681 dev/pcmcia/if_cnw.c sizeof(eh->ether_dhost)) != 0) {
eh 1147 dev/pcmcia/if_ray.c struct ether_header *eh;
eh 1232 dev/pcmcia/if_ray.c eh = mtod(m0, struct ether_header *);
eh 1233 dev/pcmcia/if_ray.c et = ntohs(eh->ether_type);
eh 1258 dev/pcmcia/if_ray.c eh = (struct ether_header *)((u_int8_t *)iframe + tmplen);
eh 1263 dev/pcmcia/if_ray.c memcpy(iframe->i_addr1, eh->ether_dhost,ETHER_ADDR_LEN);
eh 1264 dev/pcmcia/if_ray.c memcpy(iframe->i_addr2, eh->ether_shost,ETHER_ADDR_LEN);
eh 1269 dev/pcmcia/if_ray.c memcpy(iframe->i_addr2, eh->ether_shost,ETHER_ADDR_LEN);
eh 1270 dev/pcmcia/if_ray.c memmove(iframe->i_addr3,eh->ether_dhost,ETHER_ADDR_LEN);
eh 1373 dev/pcmcia/if_ray.c struct ether_header *eh;
eh 1601 dev/pcmcia/if_ray.c eh = (struct ether_header *)((caddr_t)(frame + 1) - 6);
eh 1602 dev/pcmcia/if_ray.c memcpy(eh->ether_shost, src, ETHER_ADDR_LEN);
eh 1603 dev/pcmcia/if_ray.c memcpy(eh->ether_dhost, frame->i_addr1, ETHER_ADDR_LEN);
eh 1606 dev/pcmcia/if_ray.c eh = (struct ether_header *)(frame + 1);
eh 1608 dev/pcmcia/if_ray.c m_adj(m, (caddr_t)eh - (caddr_t)frame);
eh 347 kern/exec_elf.c Elf_Ehdr eh;
eh 382 kern/exec_elf.c (caddr_t)&eh, sizeof(eh))) != 0)
eh 385 kern/exec_elf.c if (ELFNAME(check_header)(&eh, ET_DYN)
eh 387 kern/exec_elf.c && ELFNAME(olf_check_header)(&eh, ET_DYN, &os)
eh 394 kern/exec_elf.c phsize = eh.e_phnum * sizeof(Elf_Phdr);
eh 397 kern/exec_elf.c if ((error = ELFNAME(read_from)(p, nd.ni_vp, eh.e_phoff, (caddr_t)ph,
eh 401 kern/exec_elf.c for (i = 0; i < eh.e_phnum; i++) {
eh 473 kern/exec_elf.c for (i = 0; i < eh.e_phnum; i++) {
eh 491 kern/exec_elf.c if (eh.e_entry >= ph[i].p_vaddr &&
eh 492 kern/exec_elf.c eh.e_entry < (ph[i].p_vaddr + size)) {
eh 493 kern/exec_elf.c epp->ep_entry = addr + eh.e_entry -
eh 535 kern/exec_elf.c Elf_Ehdr *eh = epp->ep_hdr;
eh 546 kern/exec_elf.c if (ELFNAME(check_header)(eh, ET_EXEC)
eh 548 kern/exec_elf.c && ELFNAME(olf_check_header)(eh, ET_EXEC, &os)
eh 568 kern/exec_elf.c phsize = eh->e_phnum * sizeof(Elf_Phdr);
eh 571 kern/exec_elf.c if ((error = ELFNAME(read_from)(p, epp->ep_vp, eh->e_phoff, (caddr_t)ph,
eh 578 kern/exec_elf.c for (i = 0; i < eh->e_phnum; i++) {
eh 634 kern/exec_elf.c for (i = 0; i < eh->e_phnum; i++) {
eh 731 kern/exec_elf.c epp->ep_entry = eh->e_entry;
eh 743 kern/exec_elf.c ap->arg_phentsize = eh->e_phentsize;
eh 744 kern/exec_elf.c ap->arg_phnum = eh->e_phnum;
eh 745 kern/exec_elf.c ap->arg_entry = eh->e_entry;
eh 855 kern/exec_elf.c ELFNAME(check_brand)(Elf_Ehdr *eh)
eh 857 kern/exec_elf.c if (eh->e_ident[EI_ABIVERSION] == '\0')
eh 859 kern/exec_elf.c return (&eh->e_ident[EI_ABIVERSION]);
eh 863 kern/exec_elf.c ELFNAME(os_pt_note)(struct proc *p, struct exec_package *epp, Elf_Ehdr *eh,
eh 871 kern/exec_elf.c phsize = eh->e_phnum * sizeof(Elf_Phdr);
eh 873 kern/exec_elf.c if ((error = ELFNAME(read_from)(p, epp->ep_vp, eh->e_phoff,
eh 877 kern/exec_elf.c for (ph = hph; ph < &hph[eh->e_phnum]; ph++) {
eh 78 lib/libsa/arp.c struct ether_header eh;
eh 85 lib/libsa/arp.c struct ether_header eh;
eh 135 lib/libsa/arp.c ether_sprintf(rbuf.eh.ether_shost));
eh 67 lib/libsa/ether.c struct ether_header *eh;
eh 74 lib/libsa/ether.c eh = (struct ether_header *)pkt - 1;
eh 75 lib/libsa/ether.c len += sizeof(*eh);
eh 77 lib/libsa/ether.c MACPY(d->myea, eh->ether_shost); /* by byte */
eh 78 lib/libsa/ether.c MACPY(dea, eh->ether_dhost); /* by byte */
eh 79 lib/libsa/ether.c eh->ether_type = htons(etype);
eh 81 lib/libsa/ether.c n = netif_put(d, eh, len);
eh 82 lib/libsa/ether.c if (n < 0 || (size_t)n < sizeof(*eh))
eh 85 lib/libsa/ether.c n -= sizeof(*eh);
eh 103 lib/libsa/ether.c struct ether_header *eh;
eh 110 lib/libsa/ether.c eh = (struct ether_header *)pkt - 1;
eh 111 lib/libsa/ether.c len += sizeof(*eh);
eh 113 lib/libsa/ether.c n = netif_get(d, eh, len, tleft);
eh 114 lib/libsa/ether.c if (n < 0 || (size_t)n < sizeof(*eh))
eh 118 lib/libsa/ether.c if (bcmp(d->myea, eh->ether_dhost, 6) != 0 &&
eh 119 lib/libsa/ether.c bcmp(bcea, eh->ether_dhost, 6) != 0) {
eh 123 lib/libsa/ether.c ether_sprintf(eh->ether_dhost));
eh 127 lib/libsa/ether.c *etype = ntohs(eh->ether_type);
eh 129 lib/libsa/ether.c n -= sizeof(*eh);
eh 376 net/bridgestp.c struct ether_header *eh;
eh 387 net/bridgestp.c m->m_pkthdr.len = sizeof(*eh) + sizeof(bpdu);
eh 390 net/bridgestp.c eh = mtod(m, struct ether_header *);
eh 391 net/bridgestp.c bcopy(LLADDR(ifp->if_sadl), eh->ether_shost, ETHER_ADDR_LEN);
eh 392 net/bridgestp.c bcopy(bstp_etheraddr, eh->ether_dhost, ETHER_ADDR_LEN);
eh 393 net/bridgestp.c eh->ether_type = htons(sizeof(bpdu));
eh 400 net/bridgestp.c bcopy(&bpdu, mtod(m, caddr_t) + sizeof(*eh), sizeof(bpdu));
eh 488 net/bridgestp.c struct ether_header *eh;
eh 505 net/bridgestp.c eh = mtod(m, struct ether_header *);
eh 511 net/bridgestp.c memcpy(eh->ether_shost, LLADDR(ifp->if_sadl), ETHER_ADDR_LEN);
eh 512 net/bridgestp.c memcpy(eh->ether_dhost, bstp_etheraddr, ETHER_ADDR_LEN);
eh 517 net/bridgestp.c m->m_pkthdr.len = sizeof(*eh) + BSTP_BPDU_STP_LEN;
eh 518 net/bridgestp.c eh->ether_type = htons(BSTP_BPDU_STP_LEN);
eh 519 net/bridgestp.c memcpy(mtod(m, caddr_t) + sizeof(*eh), bpdu,
eh 525 net/bridgestp.c m->m_pkthdr.len = sizeof(*eh) + BSTP_BPDU_RSTP_LEN;
eh 526 net/bridgestp.c eh->ether_type = htons(BSTP_BPDU_RSTP_LEN);
eh 527 net/bridgestp.c memcpy(mtod(m, caddr_t) + sizeof(*eh), bpdu,
eh 597 net/bridgestp.c struct ether_header *eh, struct mbuf *m)
eh 605 net/bridgestp.c len = ntohs(eh->ether_type);
eh 1004 net/if_bridge.c struct ether_header *eh;
eh 1020 net/if_bridge.c if (m->m_len < sizeof(*eh)) {
eh 1021 net/if_bridge.c m = m_pullup(m, sizeof(*eh));
eh 1025 net/if_bridge.c eh = mtod(m, struct ether_header *);
eh 1026 net/if_bridge.c dst = (struct ether_addr *)&eh->ether_dhost[0];
eh 1027 net/if_bridge.c src = (struct ether_addr *)&eh->ether_shost[0];
eh 1046 net/if_bridge.c if (dst_if == NULL || ETHER_IS_MULTICAST(eh->ether_dhost)) {
eh 1199 net/if_bridge.c struct ether_header eh;
eh 1231 net/if_bridge.c if (m->m_pkthdr.len < sizeof(eh)) {
eh 1235 net/if_bridge.c m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&eh);
eh 1236 net/if_bridge.c dst = (struct ether_addr *)&eh.ether_dhost[0];
eh 1237 net/if_bridge.c src = (struct ether_addr *)&eh.ether_shost[0];
eh 1244 net/if_bridge.c (eh.ether_shost[0] & 1) == 0 &&
eh 1245 net/if_bridge.c !(eh.ether_shost[0] == 0 && eh.ether_shost[1] == 0 &&
eh 1246 net/if_bridge.c eh.ether_shost[2] == 0 && eh.ether_shost[3] == 0 &&
eh 1247 net/if_bridge.c eh.ether_shost[4] == 0 && eh.ether_shost[5] == 0))
eh 1304 net/if_bridge.c if (ifl->bif_flags & IFBIF_BLOCKNONIP && bridge_blocknonip(&eh, m)) {
eh 1309 net/if_bridge.c if (bridge_filterrule(&ifl->bif_brlin, &eh, m) == BRL_ACTION_BLOCK) {
eh 1314 net/if_bridge.c m = bridge_filter(sc, BRIDGE_IN, src_if, &eh, m);
eh 1325 net/if_bridge.c bridge_broadcast(sc, src_if, &eh, m);
eh 1351 net/if_bridge.c if (bridge_filterrule(&ifl->bif_brlout, &eh, m) == BRL_ACTION_BLOCK) {
eh 1356 net/if_bridge.c m = bridge_filter(sc, BRIDGE_OUT, dst_if, &eh, m);
eh 1363 net/if_bridge.c bridge_fragment(sc, dst_if, &eh, m);
eh 1376 net/if_bridge.c bridge_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
eh 1406 net/if_bridge.c bridge_span(sc, eh, m);
eh 1410 net/if_bridge.c if (bcmp(eh->ether_dhost, bstp_etheraddr, ETHER_ADDR_LEN) == 0) {
eh 1411 net/if_bridge.c m = bstp_input(sc->sc_stp, ifl->bif_stp, eh, m);
eh 1434 net/if_bridge.c bcopy(eh, mtod(mc, caddr_t), ETHER_HDR_LEN);
eh 1452 net/if_bridge.c ether_input(ifl->ifp, eh, m);
eh 1474 net/if_bridge.c if (bcmp(ac->ac_enaddr, eh->ether_dhost, ETHER_ADDR_LEN) == 0
eh 1477 net/if_bridge.c eh, IFT_ETHER, 0) != NULL)
eh 1482 net/if_bridge.c (struct ether_addr *)&eh->ether_shost,
eh 1484 net/if_bridge.c if (bridge_filterrule(&srcifl->bif_brlin, eh, m) ==
eh 1492 net/if_bridge.c ether_input(ifl->ifp, eh, m);
eh 1497 net/if_bridge.c if (bcmp(ac->ac_enaddr, eh->ether_shost, ETHER_ADDR_LEN) == 0
eh 1500 net/if_bridge.c eh, IFT_ETHER, 1) != NULL)
eh 1510 net/if_bridge.c bcopy(eh, mtod(m, caddr_t), ETHER_HDR_LEN);
eh 1530 net/if_bridge.c struct ether_header *eh, struct mbuf *m)
eh 1570 net/if_bridge.c bridge_blocknonip(eh, m))
eh 1573 net/if_bridge.c if (bridge_filterrule(&p->bif_brlout, eh, m) == BRL_ACTION_BLOCK)
eh 1612 net/if_bridge.c mc = bridge_filter(sc, BRIDGE_OUT, dst_if, eh, mc);
eh 1618 net/if_bridge.c bridge_fragment(sc, dst_if, eh, mc);
eh 1629 net/if_bridge.c bridge_span(struct bridge_softc *sc, struct ether_header *eh,
eh 1643 net/if_bridge.c if (eh != NULL) {
eh 1647 net/if_bridge.c bcopy(eh, mtod(m, caddr_t), ETHER_HDR_LEN);
eh 2079 net/if_bridge.c bridge_blocknonip(struct ether_header *eh, struct mbuf *m)
eh 2087 net/if_bridge.c etype = ntohs(eh->ether_type);
eh 2122 net/if_bridge.c bridge_filterrule(struct brl_head *h, struct ether_header *eh, struct mbuf *m)
eh 2132 net/if_bridge.c if (bcmp(eh->ether_shost, &n->brl_src, ETHER_ADDR_LEN))
eh 2134 net/if_bridge.c if (bcmp(eh->ether_dhost, &n->brl_dst, ETHER_ADDR_LEN))
eh 2139 net/if_bridge.c if (bcmp(eh->ether_shost, &n->brl_src, ETHER_ADDR_LEN))
eh 2144 net/if_bridge.c if (bcmp(eh->ether_dhost, &n->brl_dst, ETHER_ADDR_LEN))
eh 2215 net/if_bridge.c struct ether_header *eh, int hassnap, struct llc *llc,
eh 2392 net/if_bridge.c bridge_send_icmp_err(sc, ifp, eh, m,
eh 2415 net/if_bridge.c struct ether_header *eh, struct mbuf *m)
eh 2423 net/if_bridge.c etype = ntohs(eh->ether_type);
eh 2505 net/if_bridge.c bridge_ipsec(sc, ifp, eh, hassnap, &llc,
eh 2512 net/if_bridge.c if (pf_test(dir, ifp, &m, eh) != PF_PASS)
eh 2552 net/if_bridge.c bridge_ipsec(sc, ifp, eh, hassnap, &llc,
eh 2557 net/if_bridge.c if (pf_test6(dir, ifp, &m, eh) != PF_PASS)
eh 2580 net/if_bridge.c M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
eh 2583 net/if_bridge.c bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
eh 2596 net/if_bridge.c struct ether_header *eh, struct mbuf *m)
eh 2610 net/if_bridge.c etype = ntohs(eh->ether_type);
eh 2652 net/if_bridge.c bridge_send_icmp_err(sc, ifp, eh, m, hassnap, &llc,
eh 2676 net/if_bridge.c M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
eh 2682 net/if_bridge.c bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
eh 2736 net/if_bridge.c struct ether_header *eh, struct mbuf *n, int hassnap, struct llc *llc,
eh 2781 net/if_bridge.c bcopy(&eh->ether_dhost, ðer_tmp, sizeof(ether_tmp));
eh 2782 net/if_bridge.c bcopy(&eh->ether_shost, &eh->ether_dhost, sizeof(ether_tmp));
eh 2783 net/if_bridge.c bcopy(ðer_tmp, &eh->ether_shost, sizeof(ether_tmp));
eh 2794 net/if_bridge.c M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
eh 2797 net/if_bridge.c bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
eh 204 net/if_ethersubr.c struct ether_header *eh;
eh 330 net/if_ethersubr.c eh = (struct ether_header *)dst->sa_data;
eh 331 net/if_ethersubr.c bcopy((caddr_t)eh->ether_shost, (caddr_t)esrc, sizeof(esrc));
eh 335 net/if_ethersubr.c eh = (struct ether_header *)dst->sa_data;
eh 336 net/if_ethersubr.c bcopy((caddr_t)eh->ether_dhost, (caddr_t)edst, sizeof(edst));
eh 338 net/if_ethersubr.c etype = eh->ether_type;
eh 358 net/if_ethersubr.c eh = mtod(m, struct ether_header *);
eh 359 net/if_ethersubr.c bcopy((caddr_t)&etype,(caddr_t)&eh->ether_type,
eh 360 net/if_ethersubr.c sizeof(eh->ether_type));
eh 361 net/if_ethersubr.c bcopy((caddr_t)edst, (caddr_t)eh->ether_dhost, sizeof(edst));
eh 363 net/if_ethersubr.c bcopy((caddr_t)esrc, (caddr_t)eh->ether_shost,
eh 364 net/if_ethersubr.c sizeof(eh->ether_shost));
eh 366 net/if_ethersubr.c bcopy((caddr_t)ac->ac_enaddr, (caddr_t)eh->ether_shost,
eh 367 net/if_ethersubr.c sizeof(eh->ether_shost));
eh 373 net/if_ethersubr.c (caddr_t)eh->ether_shost, sizeof(eh->ether_shost));
eh 455 net/if_ethersubr.c ether_input(ifp, eh, m)
eh 457 net/if_ethersubr.c struct ether_header *eh;
eh 472 net/if_ethersubr.c if (eh == NULL) {
eh 473 net/if_ethersubr.c eh = mtod(m, struct ether_header *);
eh 481 net/if_ethersubr.c trunk_input(ifp, eh, m) != 0) {
eh 496 net/if_ethersubr.c if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
eh 511 net/if_ethersubr.c if (sdl && bcmp(LLADDR(sdl), eh->ether_shost,
eh 518 net/if_ethersubr.c if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
eh 526 net/if_ethersubr.c ifp->if_ibytes += m->m_pkthdr.len + sizeof(*eh);
eh 528 net/if_ethersubr.c etype = ntohs(eh->ether_type);
eh 531 net/if_ethersubr.c if (etype == ETHERTYPE_VLAN && (vlan_input(eh, m) == 0))
eh 546 net/if_ethersubr.c m = bridge_input(ifp, eh, m);
eh 567 net/if_ethersubr.c (carp_input(m, (u_int8_t *)&eh->ether_shost,
eh 568 net/if_ethersubr.c (u_int8_t *)&eh->ether_dhost, eh->ether_type) == 0))
eh 575 net/if_ethersubr.c (caddr_t)eh->ether_dhost, ETHER_ADDR_LEN))
eh 596 net/if_ethersubr.c if (bcmp(ac->ac_enaddr, (caddr_t)eh->ether_dhost,
eh 662 net/if_ethersubr.c M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
eh 667 net/if_ethersubr.c bcopy(eh, eh_tmp, sizeof(struct ether_header));
eh 723 net/if_ethersubr.c M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
eh 726 net/if_ethersubr.c *mtod(m, struct ether_header *) = *eh;
eh 249 net/if_fddisubr.c struct ether_header *eh;
eh 250 net/if_fddisubr.c eh = (struct ether_header *)dst->sa_data;
eh 251 net/if_fddisubr.c bcopy((caddr_t)eh->ether_dhost, (caddr_t)edst, sizeof (edst));
eh 254 net/if_fddisubr.c type = eh->ether_type;
eh 399 net/if_pppoe.c struct ether_header *eh;
eh 415 net/if_pppoe.c if (m->m_len < sizeof(*eh)) {
eh 416 net/if_pppoe.c m = m_pullup(m, sizeof(*eh));
eh 420 net/if_pppoe.c eh = mtod(m, struct ether_header *);
eh 421 net/if_pppoe.c off += sizeof(*eh);
eh 582 net/if_pppoe.c memcpy(&sc->sc_dest, eh->ether_shost, sizeof(sc->sc_dest));
eh 656 net/if_pppoe.c memcpy(&sc->sc_dest, eh->ether_shost, sizeof(sc->sc_dest));
eh 820 net/if_pppoe.c struct ether_header *eh;
eh 836 net/if_pppoe.c eh = (struct ether_header*)&dst.sa_data;
eh 838 net/if_pppoe.c eh->ether_type = htons(etype);
eh 839 net/if_pppoe.c memcpy(&eh->ether_dhost, &sc->sc_dest, sizeof sc->sc_dest);
eh 1286 net/if_pppoe.c struct ether_header *eh;
eh 1300 net/if_pppoe.c eh = (struct ether_header *)&dst.sa_data;
eh 1301 net/if_pppoe.c eh->ether_type = htons(ETHERTYPE_PPPOEDISC);
eh 1302 net/if_pppoe.c memcpy(&eh->ether_dhost, dest, ETHER_ADDR_LEN);
eh 947 net/if_trunk.c struct ether_header *eh;
eh 955 net/if_trunk.c off = sizeof(*eh);
eh 958 net/if_trunk.c eh = mtod(m, struct ether_header *);
eh 959 net/if_trunk.c etype = ntohs(eh->ether_type);
eh 960 net/if_trunk.c p = hash32_buf(&eh->ether_shost, ETHER_ADDR_LEN, key);
eh 961 net/if_trunk.c p = hash32_buf(&eh->ether_dhost, ETHER_ADDR_LEN, p);
eh 1043 net/if_trunk.c trunk_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
eh 1064 net/if_trunk.c error = (*tr->tr_input)(tr, tp, eh, m);
eh 1070 net/if_trunk.c bpf_mtap_hdr(trifp->if_bpf, (char *)eh, ETHER_HDR_LEN, m,
eh 1241 net/if_trunk.c struct ether_header *eh, struct mbuf *m)
eh 1291 net/if_trunk.c struct ether_header *eh, struct mbuf *m)
eh 1427 net/if_trunk.c struct ether_header *eh, struct mbuf *m)
eh 273 net/if_vlan.c vlan_input(eh, m)
eh 274 net/if_vlan.c struct ether_header *eh;
eh 310 net/if_vlan.c eh->ether_type = mtod(m, u_int16_t *)[1];
eh 317 net/if_vlan.c bpf_mtap_hdr(ifv->ifv_if.if_bpf, (char *)eh, ETHER_HDR_LEN,
eh 321 net/if_vlan.c ether_input(&ifv->ifv_if, eh, m);
eh 100 net/if_vlan_var.h extern int vlan_input(struct ether_header *eh, struct mbuf *m);
eh 1561 net/pf.c u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp)
eh 1674 net/pf.c if (eh == NULL) {
eh 1690 net/pf.c bcopy(eh->ether_dhost, e->ether_shost, ETHER_ADDR_LEN);
eh 1691 net/pf.c bcopy(eh->ether_shost, e->ether_dhost, ETHER_ADDR_LEN);
eh 1692 net/pf.c e->ether_type = eh->ether_type;
eh 3219 net/pf.c r->return_ttl, 1, 0, pd->eh, kif->pfik_ifp);
eh 3984 net/pf.c pd->eh, kif->pfik_ifp);
eh 5344 net/pf.c struct ether_header *eh)
eh 5413 net/pf.c pd.eh = eh;
eh 5653 net/pf.c struct ether_header *eh)
eh 5725 net/pf.c pd.eh = eh;
eh 1071 net/pfvar.h *eh;
eh 134 net80211/ieee80211_input.c struct ether_header *eh;
eh 372 net80211/ieee80211_input.c eh = mtod(m, struct ether_header *);
eh 375 net80211/ieee80211_input.c eh->ether_type != htons(ETHERTYPE_PAE)) {
eh 388 net80211/ieee80211_input.c if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
eh 395 net80211/ieee80211_input.c ni = ieee80211_find_node(ic, eh->ether_dhost);
eh 531 net80211/ieee80211_input.c struct ether_header *eh;
eh 547 net80211/ieee80211_input.c m_adj(m, hdrlen + sizeof(struct llc) - sizeof(*eh));
eh 550 net80211/ieee80211_input.c m_adj(m, hdrlen - sizeof(*eh));
eh 552 net80211/ieee80211_input.c eh = mtod(m, struct ether_header *);
eh 555 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1);
eh 556 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2);
eh 559 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr3);
eh 560 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2);
eh 563 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1);
eh 564 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr3);
eh 572 net80211/ieee80211_input.c if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), u_int32_t)) {
eh 606 net80211/ieee80211_input.c (caddr_t)ALIGN(n->m_data + sizeof(*eh)) -
eh 607 net80211/ieee80211_input.c sizeof(*eh);
eh 622 net80211/ieee80211_input.c eh = mtod(m, struct ether_header *);
eh 623 net80211/ieee80211_input.c eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh));
eh 386 net80211/ieee80211_output.c const struct ether_header *eh;
eh 398 net80211/ieee80211_output.c eh = mtod(m, struct ether_header *);
eh 399 net80211/ieee80211_output.c if (eh->ether_type == htons(ETHERTYPE_IP)) {
eh 400 net80211/ieee80211_output.c const struct ip *ip = (const struct ip *)(eh + 1);
eh 439 net80211/ieee80211_output.c struct ether_header eh;
eh 501 net80211/ieee80211_output.c memcpy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
eh 503 net80211/ieee80211_output.c ni = ieee80211_find_txnode(ic, eh.ether_dhost);
eh 506 net80211/ieee80211_output.c __func__, ether_sprintf(eh.ether_dhost)));
eh 511 net80211/ieee80211_output.c if (!ni->ni_port_valid && eh.ether_type != htons(ETHERTYPE_PAE)) {
eh 513 net80211/ieee80211_output.c __func__, ether_sprintf(eh.ether_dhost)));
eh 523 net80211/ieee80211_output.c eh.ether_type != htons(ETHERTYPE_PAE)) {
eh 538 net80211/ieee80211_output.c llc->llc_snap.ether_type = eh.ether_type;
eh 565 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, eh.ether_shost);
eh 566 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, eh.ether_dhost);
eh 571 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, eh.ether_dhost);
eh 572 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, eh.ether_shost);
eh 577 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, eh.ether_dhost);
eh 579 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, eh.ether_shost);
eh 1514 net80211/ieee80211_output.c struct ether_header *eh;
eh 1522 net80211/ieee80211_output.c eh = mtod(m, struct ether_header *);
eh 1523 net80211/ieee80211_output.c eh->ether_type = htons(ETHERTYPE_PAE);
eh 1524 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(eh->ether_shost, ic->ic_myaddr);
eh 1525 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(eh->ether_dhost, ni->ni_macaddr);
eh 1527 net80211/ieee80211_output.c key = (struct ieee80211_eapol_key *)&eh[1];
eh 193 netatalk/aarp.c struct ether_header *eh;
eh 230 netatalk/aarp.c eh = (struct ether_header *)sa.sa_data;
eh 233 netatalk/aarp.c bcopy((caddr_t)atmulticastaddr, (caddr_t)eh->ether_dhost,
eh 234 netatalk/aarp.c sizeof( eh->ether_dhost ));
eh 235 netatalk/aarp.c eh->ether_type = htons(AT_LLC_SIZE + sizeof(struct ether_aarp));
eh 253 netatalk/aarp.c bcopy((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
eh 254 netatalk/aarp.c sizeof( eh->ether_dhost ));
eh 255 netatalk/aarp.c eh->ether_type = htons( ETHERTYPE_AARP );
eh 370 netatalk/aarp.c struct ether_header *eh;
eh 519 netatalk/aarp.c eh = (struct ether_header *)sa.sa_data;
eh 520 netatalk/aarp.c bcopy(( caddr_t )ea->aarp_tha, ( caddr_t )eh->ether_dhost,
eh 521 netatalk/aarp.c sizeof( eh->ether_dhost ));
eh 524 netatalk/aarp.c eh->ether_type = htons( AT_LLC_SIZE +
eh 539 netatalk/aarp.c eh->ether_type = htons( ETHERTYPE_AARP );
eh 607 netatalk/aarp.c struct ether_header *eh;
eh 659 netatalk/aarp.c eh = (struct ether_header *)sa.sa_data;
eh 662 netatalk/aarp.c bcopy((caddr_t)atmulticastaddr, (caddr_t)eh->ether_dhost,
eh 663 netatalk/aarp.c sizeof( eh->ether_dhost ));
eh 664 netatalk/aarp.c eh->ether_type = htons( AT_LLC_SIZE +
eh 682 netatalk/aarp.c bcopy((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
eh 683 netatalk/aarp.c sizeof( eh->ether_dhost ));
eh 684 netatalk/aarp.c eh->ether_type = htons( ETHERTYPE_AARP );
eh 328 netinet/if_ether.c struct ether_header *eh;
eh 338 netinet/if_ether.c eh = (struct ether_header *)sa.sa_data;
eh 340 netinet/if_ether.c bcopy((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
eh 341 netinet/if_ether.c sizeof(eh->ether_dhost));
eh 342 netinet/if_ether.c eh->ether_type = htons(ETHERTYPE_ARP); /* if_output will not swap */
eh 348 netinet/if_ether.c bcopy((caddr_t)enaddr, (caddr_t)eh->ether_shost,
eh 349 netinet/if_ether.c sizeof(eh->ether_shost));
eh 523 netinet/if_ether.c struct ether_header *eh;
eh 727 netinet/if_ether.c eh = (struct ether_header *)sa.sa_data;
eh 728 netinet/if_ether.c bcopy(ea->arp_tha, eh->ether_dhost, sizeof(eh->ether_dhost));
eh 732 netinet/if_ether.c eh->ether_shost, sizeof(eh->ether_shost));
eh 735 netinet/if_ether.c bcopy(enaddr, eh->ether_shost, sizeof(eh->ether_shost));
eh 737 netinet/if_ether.c eh->ether_type = htons(ETHERTYPE_ARP);
eh 921 netinet/if_ether.c struct ether_header *eh;
eh 931 netinet/if_ether.c eh = (struct ether_header *)sa.sa_data;
eh 933 netinet/if_ether.c bcopy((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
eh 934 netinet/if_ether.c sizeof(eh->ether_dhost));
eh 935 netinet/if_ether.c eh->ether_type = htons(ETHERTYPE_REVARP);
eh 941 netinet/if_ether.c bcopy((caddr_t)ac->ac_enaddr, (caddr_t)eh->ether_shost,
eh 1480 netinet/ip_carp.c carp_ourether(void *v, struct ether_header *eh, u_char iftype, int src)
eh 1487 netinet/ip_carp.c ena = (u_int8_t *)&eh->ether_shost;
eh 1489 netinet/ip_carp.c ena = (u_int8_t *)&eh->ether_dhost;
eh 1505 netinet/ip_carp.c struct ether_header eh;
eh 1509 netinet/ip_carp.c bcopy(shost, &eh.ether_shost, sizeof(eh.ether_shost));
eh 1510 netinet/ip_carp.c bcopy(dhost, &eh.ether_dhost, sizeof(eh.ether_dhost));
eh 1511 netinet/ip_carp.c eh.ether_type = etype;
eh 1513 netinet/ip_carp.c if ((ifp = carp_ourether(cif, &eh, m->m_pkthdr.rcvif->if_type, 0)))
eh 1528 netinet/ip_carp.c ether_input(&vh->sc_if, &eh, m0);
eh 1540 netinet/ip_carp.c bpf_mtap_hdr(ifp->if_bpf, (char *)&eh, ETHER_HDR_LEN, m,
eh 1544 netinet/ip_carp.c ether_input(ifp, &eh, m);
eh 82 netinet/ip_ether.c struct ether_header eh;
eh 208 netinet/ip_ether.c m_copydata(m, 0, sizeof(eh), (void *) &eh);
eh 212 netinet/ip_ether.c if (eh.ether_dhost[0] & 1) {
eh 214 netinet/ip_ether.c (caddr_t)eh.ether_dhost, sizeof(etherbroadcastaddr)) == 0)
eh 260 netinet/ip_ether.c m = bridge_input(&sc->gif_if, &eh, m);
eh 933 netinet6/icmp6.c struct ip6_ext *eh;
eh 939 netinet6/icmp6.c IP6_EXTHDR_GET(eh, struct ip6_ext *, m,
eh 940 netinet6/icmp6.c eoff, sizeof(*eh));
eh 941 netinet6/icmp6.c if (eh == NULL) {
eh 947 netinet6/icmp6.c eoff += (eh->ip6e_len + 2) << 2;
eh 949 netinet6/icmp6.c eoff += (eh->ip6e_len + 1) << 3;
eh 950 netinet6/icmp6.c nxt = eh->ip6e_nxt;
eh 193 netinet6/ip6_output.c struct ip6_ext *eh = (struct ip6_ext *)(hp); \
eh 195 netinet6/ip6_output.c ((eh)->ip6e_len + 1) << 3); \