Searched refs:eh (Results 1 - 25 of 176) sorted by relevance

12345678

/freebsd-head/stand/libsa/
H A Dether.c60 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-head/contrib/elftoolchain/libelf/
H A Delf_shstrndx.c37 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 Dlibelf_extended.c49 _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 Delf_phnum.c37 void *eh; local
46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
H A Delf_shnum.c37 void *eh; local
46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
H A Dlibelf_ar.c111 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 Dlibelf_ehdr.c92 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-head/contrib/ipfilter/ipsend/
H A Dresend.c73 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 Dip.c56 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...]
H A Dsirix.c67 struct ether_header *eh = (struct ether_header *)pkt; local
84 memcpy(eh->ether_shost, ifr.ifr_addr.sa_data, sizeof(eh->ether_shost));
/freebsd-head/sys/netgraph/
H A Dng_ether_echo.c110 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-head/lib/libkvm/
H A Dkvm_powerpc.c51 Elf32_Ehdr *eh; member in struct:vmstate
56 valid_elf_header(Elf32_Ehdr *eh) argument
59 if (!IS_ELF(*eh))
61 if (eh->e_ident[EI_CLASS] != ELFCLASS32)
63 if (eh->e_ident[EI_DATA] != ELFDATA2MSB)
65 if (eh->e_ident[EI_VERSION] != EV_CURRENT)
67 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE)
69 if (be16toh(eh->e_type) != ET_CORE)
71 if (be16toh(eh->e_machine) != EM_PPC)
102 vm->mapsz = sizeof(*vm->eh)
[all...]
H A Dkvm_powerpc64.c51 Elf64_Ehdr *eh; member in struct:vmstate
56 valid_elf_header(Elf64_Ehdr *eh) argument
59 if (!IS_ELF(*eh))
61 if (eh->e_ident[EI_CLASS] != ELFCLASS64)
63 if (eh->e_ident[EI_DATA] != ELFDATA2MSB)
65 if (eh->e_ident[EI_VERSION] != EV_CURRENT)
67 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE)
69 if (be16toh(eh->e_type) != ET_CORE)
71 if (be16toh(eh->e_machine) != EM_PPC64)
102 vm->mapsz = sizeof(*vm->eh)
[all...]
/freebsd-head/sys/mips/mips/
H A Delf_trampoline.c108 Elf64_Ehdr *eh; local
112 Elf32_Ehdr *eh;
125 eh = (Elf64_Ehdr *)kstart;
127 eh = (Elf32_Ehdr *)kstart;
129 entry_point = mkptr(eh->e_entry);
130 memcpy(phdr, (void *)(kstart + eh->e_phoff),
131 eh->e_phnum * sizeof(phdr[0]));
133 memcpy(shdr, (void *)(kstart + eh->e_shoff),
134 sizeof(*shdr) * eh->e_shnum);
136 if (eh
[all...]
/freebsd-head/tools/tools/ath/ath_ee_9287_print/
H A D9287.c53 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-head/tools/tools/ath/ath_ee_v14_print/
H A Dath_ee_v14_print.c89 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-head/tools/tools/ath/ath_ee_v4k_print/
H A Dv4k.c54 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-head/sbin/dhclient/
H A Dpacket.c97 struct ether_header eh; local
99 memset(eh.ether_dhost, 0xff, sizeof(eh.ether_dhost));
100 if (interface->hw_address.hlen == sizeof(eh.ether_shost))
101 memcpy(eh.ether_shost, interface->hw_address.haddr,
102 sizeof(eh.ether_shost));
104 memset(eh.ether_shost, 0x00, sizeof(eh.ether_shost));
106 eh.ether_type = htons(ETHERTYPE_IP);
108 memcpy(&buf[*bufix], &eh, ETHER_HEADER_SIZ
152 struct ether_header eh; local
[all...]
/freebsd-head/sys/dev/wtap/
H A Dif_medium.c45 struct eventhandler *eh = (struct eventhandler *) local
47 eh->tq = taskqueue_create("wtap_tx_taskq", M_NOWAIT | M_ZERO,
48 taskqueue_thread_enqueue, &eh->tq);
49 taskqueue_start_threads(&eh->tq, 1, PI_NET, "%s taskq", "wtap_medium");
50 md->tx_handler = eh;
/freebsd-head/stand/libofw/
H A Dofw_net.c97 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-head/usr.sbin/btxld/
H A Dbtxld.c406 struct elfh eh; local
422 eh = elfhdr;
423 eh.e.e_entry = htole32(hdr->entry);
424 eh.p[0].p_vaddr = eh.p[0].p_paddr = htole32(hdr->org);
425 eh.p[0].p_filesz = eh.p[0].p_memsz = htole32(hdr->text);
426 eh.p[1].p_offset = htole32(le32toh(eh.p[0].p_offset) +
427 le32toh(eh
[all...]
/freebsd-head/usr.sbin/bluetooth/btpand/
H A Dpacket.c62 exthdr_t *eh; local
67 while ((eh = STAILQ_FIRST(&pkt->extlist)) != NULL) {
69 free(eh);
/freebsd-head/sys/dev/ixgbe/
H A Dif_fdir.c88 struct ether_vlan_header *eh; local
94 eh = mtod(mp, struct ether_vlan_header *);
95 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
97 etype = eh->evl_proto;
100 etype = eh->evl_encap_proto;
/freebsd-head/sys/kern/
H A Duipc_mbufhash.c81 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);
/freebsd-head/contrib/llvm-project/lld/ELF/
H A DMarkLive.cpp62 void scanEhFrameSection(EhInputSection &eh, ArrayRef<RelTy> rels);
136 void MarkLive<ELFT>::scanEhFrameSection(EhInputSection &eh, argument
138 for (size_t i = 0, end = eh.pieces.size(); i < end; ++i) {
139 EhSectionPiece &piece = eh.pieces[i];
147 resolveReloc(eh, rels[firstRelI], false);
157 resolveReloc(eh, rels[j], true);
247 if (auto *eh = dyn_cast<EhInputSection>(sec)) {
248 eh->markLive();
249 if (!eh->numRelocations)
252 if (eh
[all...]

Completed in 71 milliseconds

12345678