/freebsd-11-stable/stand/libsa/ |
H A D | ether.c | 60 struct ether_header *eh; local 67 eh = (struct ether_header *)pkt - 1; 68 len += sizeof(*eh); 70 MACPY(d->myea, eh->ether_shost); /* by byte */ 71 MACPY(dea, eh->ether_dhost); /* by byte */ 72 eh->ether_type = htons(etype); 74 n = netif_put(d, eh, len); 75 if (n == -1 || n < sizeof(*eh)) 78 n -= sizeof(*eh); 93 struct ether_header *eh; local [all...] |
/freebsd-11-stable/contrib/elftoolchain/libelf/ |
H A D | elf_shstrndx.c | 37 void *eh; local 46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL) 69 void *eh; local 74 ((eh = _libelf_ehdr(e, ec, 0)) == NULL)) { 79 return (_libelf_setshstrndx(e, eh, ec, strndx));
|
H A D | libelf_extended.c | 49 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) argument 70 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; 72 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; 79 _libelf_setshstrndx(Elf *e, void *eh, int ec, size_t shstrndx) argument 100 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; 102 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; 108 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) argument 129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; 131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU;
|
H A D | elf_phnum.c | 37 void *eh; local 46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
|
H A D | elf_shnum.c | 37 void *eh; local 46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
|
H A D | libelf_ar.c | 111 Elf_Arhdr *eh; local 137 if ((eh = malloc(sizeof(Elf_Arhdr))) == NULL) { 142 e->e_hdr.e_arhdr = eh; 145 eh->ar_name = eh->ar_rawname = NULL; 147 if ((eh->ar_name = _libelf_ar_get_translated_name(arh, parent)) == 154 eh->ar_uid = (uid_t) n; 159 eh->ar_gid = (gid_t) n; 164 eh->ar_mode = (mode_t) n; 182 eh [all...] |
H A D | libelf_ehdr.c | 92 Elf##SZ##_Ehdr *eh = (E); \ 93 eh->e_ident[EI_MAG0] = ELFMAG0; \ 94 eh->e_ident[EI_MAG1] = ELFMAG1; \ 95 eh->e_ident[EI_MAG2] = ELFMAG2; \ 96 eh->e_ident[EI_MAG3] = ELFMAG3; \ 97 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \ 98 eh->e_ident[EI_DATA] = ELFDATANONE; \ 99 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version) & 0xFFU; \ 100 eh->e_machine = EM_NONE; \ 101 eh [all...] |
/freebsd-11-stable/contrib/ipfilter/ipsend/ |
H A D | resend.c | 73 ether_header_t *eh; local 91 eh = (ether_header_t *)malloc(sizeof(*eh)); 92 if(!eh) 98 bzero((char *) &eh->ether_shost, sizeof(eh->ether_shost)); 102 free(eh); 110 eh = (ether_header_t *)realloc((char *)eh, sizeof(*eh) [all...] |
H A D | ip.c | 56 ether_header_t *eh; local 63 eh = (ether_header_t *)s; 65 bcopy((char *)buf, s + sizeof(*eh), len); 68 bcopy(last_arp, (char *) &eh->ether_dhost, 6); 70 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) 75 eh->ether_type = htons(ETHERTYPE_IP); 77 err = sendip(nfd, s, sizeof(*eh) + len); 94 ether_header_t *eh; local 108 eh = (ether_header_t *)ipbuf; 110 bzero((char *) &eh [all...] |
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_ether_echo.c | 110 struct ether_header *eh; local 115 if (m->m_len < sizeof(*eh) ) { 116 m = m_pullup(m, sizeof(*eh)); 122 eh = mtod(m, struct ether_header *); 125 bcopy(eh->ether_dhost, &tmpaddr, ETHER_ADDR_LEN); 126 bcopy(eh->ether_shost, eh->ether_dhost, ETHER_ADDR_LEN); 127 bcopy(&tmpaddr, eh->ether_shost, ETHER_ADDR_LEN);
|
/freebsd-11-stable/lib/libkvm/ |
H A D | kvm_powerpc.c | 49 Elf32_Ehdr *eh; member in struct:vmstate 54 valid_elf_header(Elf32_Ehdr *eh) argument 57 if (!IS_ELF(*eh)) 59 if (eh->e_ident[EI_CLASS] != ELFCLASS32) 61 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 63 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 65 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 67 if (be16toh(eh->e_type) != ET_CORE) 69 if (be16toh(eh->e_machine) != EM_PPC) 100 vm->mapsz = sizeof(*vm->eh) [all...] |
H A D | kvm_powerpc64.c | 49 Elf64_Ehdr *eh; member in struct:vmstate 54 valid_elf_header(Elf64_Ehdr *eh) argument 57 if (!IS_ELF(*eh)) 59 if (eh->e_ident[EI_CLASS] != ELFCLASS64) 61 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 63 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 65 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 67 if (be16toh(eh->e_type) != ET_CORE) 69 if (be16toh(eh->e_machine) != EM_PPC64) 100 vm->mapsz = sizeof(*vm->eh) [all...] |
/freebsd-11-stable/tests/sys/netgraph/ |
H A D | bridge.c | 55 struct ether_header eh; member in struct:frame4 61 struct ether_header eh; member in struct:frame6 74 .eh.ether_type = ETHERTYPE_IP, 75 .eh.ether_shost = {2, 4, 6}, 76 .eh.ether_dhost = {2, 4, 6}, 104 msg4.eh.ether_shost[5] = 1; 113 msg4.eh.ether_shost[5] = 1; 119 msg4.eh.ether_shost[5] = 2; 125 msg4.eh.ether_shost[5] = 3; 132 msg4.eh [all...] |
/freebsd-11-stable/sys/mips/mips/ |
H A D | elf_trampoline.c | 107 Elf64_Ehdr *eh; local 111 Elf32_Ehdr *eh; 124 eh = (Elf64_Ehdr *)kstart; 126 eh = (Elf32_Ehdr *)kstart; 128 entry_point = mkptr(eh->e_entry); 129 memcpy(phdr, (void *)(kstart + eh->e_phoff), 130 eh->e_phnum * sizeof(phdr[0])); 132 memcpy(shdr, (void *)(kstart + eh->e_shoff), 133 sizeof(*shdr) * eh->e_shnum); 135 if (eh [all...] |
/freebsd-11-stable/tools/tools/ath/ath_ee_9287_print/ |
H A D | 9287.c | 53 BASE_EEP_9287_HEADER *eh = &eep->ee_base.baseEepHeader; local 57 eh->version, eh->length, eh->checksum); 59 eh->opCapFlags, eh->eepMisc, eh->regDmn[0], eh->regDmn[1]); 61 eh->macAddr[0], eh [all...] |
/freebsd-11-stable/tools/tools/ath/ath_ee_v14_print/ |
H A D | ath_ee_v14_print.c | 89 BASE_EEP_HEADER *eh = &eep->ee_base.baseEepHeader; local 93 eh->version, eh->length, eh->checksum); 94 printf("| CapFlags: 0x%.2x\n", eh->opCapFlags); 97 eh->eepMisc, eh->regDmn[0], eh->regDmn[1]); 99 eh->macAddr[0], eh [all...] |
/freebsd-11-stable/tools/tools/ath/ath_ee_v4k_print/ |
H A D | v4k.c | 54 BASE_EEP4K_HEADER *eh = &eep->ee_base.baseEepHeader; local 57 eh->version, eh->length, eh->checksum); 59 eh->opCapFlags, eh->eepMisc, eh->regDmn[0], eh->regDmn[1]); 61 eh->macAddr[0], eh [all...] |
/freebsd-11-stable/sbin/dhclient/ |
H A D | packet.c | 95 struct ether_header eh; local 97 memset(eh.ether_dhost, 0xff, sizeof(eh.ether_dhost)); 98 if (interface->hw_address.hlen == sizeof(eh.ether_shost)) 99 memcpy(eh.ether_shost, interface->hw_address.haddr, 100 sizeof(eh.ether_shost)); 102 memset(eh.ether_shost, 0x00, sizeof(eh.ether_shost)); 104 eh.ether_type = htons(ETHERTYPE_IP); 106 memcpy(&buf[*bufix], &eh, ETHER_HEADER_SIZ 150 struct ether_header eh; local [all...] |
/freebsd-11-stable/sys/dev/wtap/ |
H A D | if_medium.c | 43 struct eventhandler *eh = (struct eventhandler *) local 45 eh->tq = taskqueue_create("wtap_tx_taskq", M_NOWAIT | M_ZERO, 46 taskqueue_thread_enqueue, &eh->tq); 47 taskqueue_start_threads(&eh->tq, 1, PI_NET, "%s taskq", "wtap_medium"); 48 md->tx_handler = eh;
|
/freebsd-11-stable/stand/ofw/libofw/ |
H A D | ofw_net.c | 97 struct ether_header *eh; local 99 eh = pkt; 100 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 101 printf("src: %s ", ether_sprintf(eh->ether_shost)); 102 printf("type: 0x%x\n", eh->ether_type & 0xffff); 180 struct ether_header *eh = ptr; local 182 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 183 printf("src: %s ", ether_sprintf(eh->ether_shost)); 184 printf("type: 0x%x\n", eh->ether_type & 0xffff);
|
/freebsd-11-stable/usr.sbin/btxld/ |
H A D | btxld.c | 405 struct elfh eh; local 421 eh = elfhdr; 422 eh.e.e_entry = htole32(hdr->entry); 423 eh.p[0].p_vaddr = eh.p[0].p_paddr = htole32(hdr->org); 424 eh.p[0].p_filesz = eh.p[0].p_memsz = htole32(hdr->text); 425 eh.p[1].p_offset = htole32(le32toh(eh.p[0].p_offset) + 426 le32toh(eh [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/btpand/ |
H A D | packet.c | 62 exthdr_t *eh; local 67 while ((eh = STAILQ_FIRST(&pkt->extlist)) != NULL) { 69 free(eh);
|
/freebsd-11-stable/contrib/gcc/ |
H A D | except.c | 189 /* Entry point for this region's handler from the runtime eh library. */ 445 cfun->eh = ggc_alloc_cleared (sizeof (struct eh_status)); 450 These are used from tree-eh.c when processing exception related 473 new->next_peer = cfun->eh->region_tree; 474 cfun->eh->region_tree = new; 477 new->region_number = ++cfun->eh->last_region_number; 576 cfun->eh->region_array, region_nr); 599 note_eh_region_may_contain_throw (cfun->eh->cur_region); 609 rtx exc_ptr = fun->eh->exc_ptr; 613 fun->eh 2117 bool eh = false; local [all...] |
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | if_fdir.c | 87 struct ether_vlan_header *eh; local 93 eh = mtod(mp, struct ether_vlan_header *); 94 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) { 96 etype = eh->evl_proto; 99 etype = eh->evl_encap_proto;
|
/freebsd-11-stable/sys/kern/ |
H A D | uipc_mbufhash.c | 81 const struct ether_header *eh; local 94 off = sizeof(*eh); 97 eh = mtod(m, struct ether_header *); 98 etype = ntohs(eh->ether_type); 100 p = fnv_32_buf(&eh->ether_shost, ETHER_ADDR_LEN, p); 101 p = fnv_32_buf(&eh->ether_dhost, ETHER_ADDR_LEN, p); 115 off += sizeof(*vlan) - sizeof(*eh);
|