/freebsd-10.0-release/lib/libstand/ |
H A D | ether.c | 65 struct ether_header *eh; local 72 eh = (struct ether_header *)pkt - 1; 73 len += sizeof(*eh); 75 MACPY(d->myea, eh->ether_shost); /* by byte */ 76 MACPY(dea, eh->ether_dhost); /* by byte */ 77 eh->ether_type = htons(etype); 79 n = netif_put(d, eh, len); 80 if (n == -1 || n < sizeof(*eh)) 83 n -= sizeof(*eh); 101 struct ether_header *eh; local [all...] |
/freebsd-10.0-release/contrib/ipfilter/ipsend/ |
H A D | resend.c | 78 ether_header_t *eh; local 96 eh = (ether_header_t *)malloc(sizeof(*eh)); 97 if(!eh) 103 bzero((char *)A_A eh->ether_shost, sizeof(eh->ether_shost)); 107 free(eh); 115 eh = (ether_header_t *)realloc((char *)eh, sizeof(*eh) [all...] |
H A D | ip.c | 61 ether_header_t *eh; local 68 eh = (ether_header_t *)s; 70 bcopy((char *)buf, s + sizeof(*eh), len); 73 bcopy(last_arp, (char *)A_A eh->ether_dhost, 6); 75 else if (arp((char *)&gwip, (char *)A_A eh->ether_dhost) == -1) 80 eh->ether_type = htons(ETHERTYPE_IP); 82 err = sendip(nfd, s, sizeof(*eh) + len); 99 ether_header_t *eh; local 113 eh = (ether_header_t *)ipbuf; 115 bzero((char *)A_A eh [all...] |
H A D | sirix.c | 67 struct ether_header *eh = (struct ether_header *)pkt; local 84 memcpy(eh->ether_shost, ifr.ifr_addr.sa_data, sizeof(eh->ether_shost));
|
/freebsd-10.0-release/lib/libelf/ |
H A D | libelf_extended.c | 50 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) argument 71 ((Elf32_Ehdr *) eh)->e_shnum = shnum; 73 ((Elf64_Ehdr *) eh)->e_shnum = shnum; 80 _libelf_setshstrndx(Elf *e, void *eh, int ec, size_t shstrndx) argument 101 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx; 103 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx; 109 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) argument 130 ((Elf32_Ehdr *) eh)->e_phnum = phnum; 132 ((Elf64_Ehdr *) eh)->e_phnum = phnum;
|
H A D | elf_shstrndx.c | 38 void *eh; local 47 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL) 70 void *eh; local 75 ((eh = _libelf_ehdr(e, ec, 0)) == NULL)) { 80 return (_libelf_setshstrndx(e, eh, ec, strndx));
|
H A D | elf_phnum.c | 38 void *eh; local 47 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
|
H A D | elf_shnum.c | 38 void *eh; local 47 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
|
H A D | libelf_ar.c | 82 Elf_Arhdr *eh; local 96 if ((eh = malloc(sizeof(Elf_Arhdr))) == NULL) { 101 e->e_arhdr = eh; 102 eh->ar_name = eh->ar_rawname = NULL; 104 if ((eh->ar_name = _libelf_ar_get_name(arh->ar_name, sizeof(arh->ar_name), 110 eh->ar_uid = (uid_t) n; 114 eh->ar_gid = (gid_t) n; 118 eh->ar_mode = (mode_t) n; 122 eh [all...] |
H A D | libelf_ehdr.c | 89 Elf##SZ##_Ehdr *eh = (E); \ 90 eh->e_ident[EI_MAG0] = ELFMAG0; \ 91 eh->e_ident[EI_MAG1] = ELFMAG1; \ 92 eh->e_ident[EI_MAG2] = ELFMAG2; \ 93 eh->e_ident[EI_MAG3] = ELFMAG3; \ 94 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \ 95 eh->e_ident[EI_DATA] = ELFDATANONE; \ 96 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version); \ 97 eh->e_machine = EM_NONE; \ 98 eh [all...] |
/freebsd-10.0-release/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-10.0-release/lib/libkvm/ |
H A D | kvm_powerpc.c | 52 Elf32_Ehdr *eh; member in struct:vmstate 57 valid_elf_header(Elf32_Ehdr *eh) argument 60 if (!IS_ELF(*eh)) 62 if (eh->e_ident[EI_CLASS] != ELFCLASS32) 64 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 66 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 68 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 70 if (be16toh(eh->e_type) != ET_CORE) 72 if (be16toh(eh->e_machine) != EM_PPC) 110 vm->eh [all...] |
H A D | kvm_powerpc64.c | 52 Elf64_Ehdr *eh; member in struct:vmstate 57 valid_elf_header(Elf64_Ehdr *eh) argument 60 if (!IS_ELF(*eh)) 62 if (eh->e_ident[EI_CLASS] != ELFCLASS64) 64 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 66 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 68 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 70 if (be16toh(eh->e_type) != ET_CORE) 72 if (be16toh(eh->e_machine) != EM_PPC64) 110 vm->eh [all...] |
/freebsd-10.0-release/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-10.0-release/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-10.0-release/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-10.0-release/tools/tools/ath/ath_ee_v4k_print/ |
H A D | v4k.c | 53 BASE_EEP4K_HEADER *eh = &eep->ee_base.baseEepHeader; local 56 eh->version, eh->length, eh->checksum); 58 eh->opCapFlags, eh->eepMisc, eh->regDmn[0], eh->regDmn[1]); 60 eh->macAddr[0], eh [all...] |
/freebsd-10.0-release/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 161 struct ether_header eh; local [all...] |
/freebsd-10.0-release/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-10.0-release/sys/boot/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); 166 struct ether_header *eh = pkt; local 168 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 169 printf("src: %s ", ether_sprintf(eh->ether_shost)); 170 printf("type: 0x%x\n", eh->ether_type & 0xffff);
|
/freebsd-10.0-release/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-10.0-release/usr.sbin/bluetooth/btpand/ |
H A D | packet.c | 59 exthdr_t *eh; local 64 while ((eh = STAILQ_FIRST(&pkt->extlist)) != NULL) { 66 free(eh);
|
/freebsd-10.0-release/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-10.0-release/sys/boot/powerpc/ps3/ |
H A D | ps3net.c | 114 struct ether_header *eh; local 117 eh = pkt; 118 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 119 printf("src: %s ", ether_sprintf(eh->ether_shost)); 120 printf("type: 0x%x\n", eh->ether_type & 0xffff); 198 struct ether_header *eh; local 201 eh = pkt; 202 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 203 printf("src: %s ", ether_sprintf(eh->ether_shost)); 204 printf("type: 0x%x\n", eh [all...] |
/freebsd-10.0-release/usr.sbin/crunch/crunchide/ |
H A D | exec_aout.c | 71 struct exec eh; local 79 if(infstat.st_size < sizeof eh) 81 if(read(inf, &eh, sizeof eh) != sizeof eh) 84 if(N_BADMAG(eh))
|