/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | newehdr.c | 66 Ehdr *eh; local 78 if ((eh = (Ehdr *)getehdr(elf)) != 0) { 83 return (eh); 98 if ((eh = (Ehdr *)getehdr(elf)) != 0) { /* this cooks if necessary */ 102 return (eh); 106 if ((eh = (Ehdr *)malloc(sizeof (Ehdr))) == 0) { 111 *eh = _elf_ehdr_init; 114 elf->ed_ehdr = eh; 116 return (eh);
|
H A D | clscook.c | 301 Ehdr * eh = elf->ed_ehdr; /* must be present */ local 304 if (eh->e_phnum == 0) 308 if (eh->e_phentsize != fsz) { 313 fsz *= eh->e_phnum; 315 msz = _elf_msize(ELF_T_PHDR, work) * eh->e_phnum; 316 if ((eh->e_phoff == 0) || 317 (elf->ed_fsz <= eh->e_phoff) || 318 (elf->ed_fsz - eh->e_phoff < fsz)) { 323 if (inplace && fsz >= msz && eh->e_phoff % sizeof (ElfField) == 0) { 324 elf->ed_phdr = (Elf_Void *)(elf->ed_ident + eh 362 register Ehdr *eh = elf->ed_ehdr; /* must be present */ local [all...] |
H A D | update.c | 163 Ehdr * eh = elf->ed_ehdr; local 164 unsigned ver = eh->e_version; 165 register char *p = (char *)eh->e_ident; 180 eh->e_ehsize = (Half)hi; 181 if (eh->e_phnum != 0) { 183 eh->e_phentsize = (Half)elf_fsize(ELF_T_PHDR, 1, ver); 185 eh->e_phoff = (Off)hi; 186 hi += eh->e_phentsize * eh->e_phnum; 188 eh 347 Ehdr * eh = elf->ed_ehdr; local 464 Ehdr *eh = elf->ed_ehdr; local 747 Ehdr *eh = elf->ed_ehdr; local 862 Ehdr *eh; local [all...] |
/illumos-gate/usr/src/boot/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...] |
H A D | arp.c | 80 struct ether_header eh; member in struct:__anon43 87 struct ether_header eh; member in struct:__anon45 138 ether_sprintf(rbuf.eh.ether_shost));
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | plock.c | 79 struct exec *eh; /* exec header */ local 129 eh = (struct exec *)lmp->lm_addr; 132 a = (caddr_t)eh; 133 l = (u_int)eh->a_text; 136 a = (caddr_t)((u_int)eh + N_DATADDR(*eh) - 137 N_TXTADDR(*eh)); 138 l = (u_int)eh->a_data + (u_int)eh->a_bss;
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 75 Elf64_Ehdr *eh; local 88 eh = getehdr(); 89 if (eh == NULL) 92 if (eh->e_type != ET_EXEC) 93 dboot_panic("not ET_EXEC, e_type = 0x%x", eh->e_type); 95 if (eh->e_phnum == 0 || eh->e_phoff == 0) 101 allphdrs = PGETBYTES(eh->e_phoff); 104 eh->e_phnum); 109 sechdrs = PGETBYTES(eh [all...] |
/illumos-gate/usr/src/common/net/wanboot/crypt/ |
H A D | cbc_test.c | 69 void *eh; local 75 ret = des3_init(&eh); 78 ret = aes_init(&eh); 81 ret = aes_init(&eh); 84 ret = aes_init(&eh); 100 des3_key(eh, (uint8_t *)DES3_KEY); 101 cbc_makehandle(&ch, eh, DES3_KEY_SIZE, DES3_BLOCK_SIZE, 105 aes_key(eh, (uint8_t *)AES_128_KEY, AES_128_KEY_SIZE); 106 cbc_makehandle(&ch, eh, AES_128_KEY_SIZE, AES_BLOCK_SIZE, 110 aes_key(eh, (uint8_ [all...] |
/illumos-gate/usr/src/tools/mbh_patch/ |
H A D | mbh_patch.c | 55 patch64(Elf64_Ehdr *eh) argument 66 if (eh->e_type != ET_EXEC) { 68 pname, fname, eh->e_type); 71 if ((eh->e_phnum == 0) || (eh->e_phoff == 0)) { 80 if ((phdrs = ELFSEEK(eh->e_phoff)) == NULL) { 82 "hdrs\n", pname, fname, eh->e_phnum); 105 for (ndx = 0; ndx < eh->e_phnum; ndx++) { 107 phdr = (Elf64_Phdr *)(phdrs + eh->e_phentsize * ndx); 132 if (eh [all...] |
/illumos-gate/usr/src/tools/elfextract/ |
H A D | elfextract.c | 52 extract32(Elf32_Ehdr *eh) argument 63 if (eh->e_type != ET_EXEC) { 65 pname, eh->e_type); 68 if (eh->e_phnum == 0 || eh->e_phoff == 0) { 76 allphdrs = ELFSEEK(eh->e_phoff); 79 pname, eh->e_phnum); 86 for (i = 0; i < eh->e_phnum; i++) { 88 phdr = (Elf32_Phdr *)(allphdrs + eh->e_phentsize * i); 122 extract64(Elf64_Ehdr *eh) argument [all...] |
/illumos-gate/usr/src/boot/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);
|
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | eh.c | 60 iu_eh_t *eh = malloc(sizeof (iu_eh_t)); local 63 if (eh == NULL) 66 eh->iueh_pollfds = NULL; 67 eh->iueh_events = NULL; 68 eh->iueh_shutdown = NULL; 69 eh->iueh_num_fds = 0; 70 eh->iueh_stop = B_FALSE; 71 eh->iueh_reason = 0; 72 eh->iueh_shutdown_arg = NULL; 74 (void) sigemptyset(&eh 94 iu_eh_destroy(iu_eh_t *eh) argument 122 iu_stop_handling_events(iu_eh_t *eh, unsigned int reason, iu_eh_shutdown_t *shutdown, void *arg) argument 141 grow_fds(iu_eh_t *eh, int total_fds) argument 199 iu_register_event(iu_eh_t *eh, int fd, short events, iu_eh_callback_t *callback, void *arg) argument 241 iu_unregister_event(iu_eh_t *eh, iu_event_id_t event_id, void **arg) argument 272 iu_handle_events(iu_eh_t *eh, iu_tq_t *tq) argument 383 iu_eh_register_signal(iu_eh_t *eh, int sig, iu_eh_sighandler_t *handler, void *data) argument 420 iu_eh_unregister_signal(iu_eh_t *eh, int sig, void **datap) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/ |
H A D | encr.c | 226 void *eh; local 232 if (des3_init(&eh) != 0) { 235 des3_key(eh, key); 240 cbc_makehandle(&ch, eh, ka->ka_len, DES3_BLOCK_SIZE, 251 des3_fini(eh); 267 void *eh; local 273 if (aes_init(&eh) != 0) { 276 aes_key(eh, key, ka->ka_len); 281 cbc_makehandle(&ch, eh, ka->ka_len, AES_BLOCK_SIZE, 292 aes_fini(eh); [all...] |
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 139 struct ether_header *eh; local 149 eh = (struct ether_header *)(void *)m_head->b_rptr; 150 if (eh->ether_type != htons(ETHERTYPE_IP)) 152 ip = (struct ip *)(void *)(eh + 1);
|
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/ |
H A D | net.c | 244 struct ether_header *eh; local 247 eh = pkt; 248 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 249 printf("src: %s ", ether_sprintf(eh->ether_shost)); 250 printf("type: 0x%x\n", eh->ether_type & 0xffff);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | events.c | 489 struct ether_header *eh; local 519 eh = (struct ether_header *)buffer; 520 rc = STP_IN_check_bpdu_header((BPDU_T *)&eh->ether_type, buflen); 531 (void) _link_ntoa(eh->ether_shost.ether_addr_octet, 546 (void) _link_ntoa(eh->ether_shost.ether_addr_octet, 552 (BPDU_T *)&eh->ether_type, buflen); 555 (void) _link_ntoa(eh->ether_shost.ether_addr_octet, sender,
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ethernet.c | 294 struct ether_header *eh; local 378 eh = (struct ether_header *)mac_state.mac_buf; 379 if (eh->ether_type == ntohs(ETHERTYPE_IP) && 416 if (eh->ether_type == ntohs(ETHERTYPE_ARP) && 442 (caddr_t)&eh->ether_dhost, 445 (caddr_t)&eh->ether_shost, 494 struct ether_header eh; local 528 eh.ether_type = htons(ETHERTYPE_IP); 529 bcopy(mac_state.mac_addr_buf, (caddr_t)&eh.ether_shost, 558 result = mac_get_arp(&tmpip, (void *)&eh [all...] |
H A D | ibd.c | 293 ipoib_ptxhdr_t *eh; local 378 eh = (ipoib_ptxhdr_t *)mac_state.mac_buf; 379 if (eh->ipoib_rhdr.ipoib_type == ntohs(ETHERTYPE_IP) && 415 if (eh->ipoib_rhdr.ipoib_type == ntohs(ETHERTYPE_ARP) && 440 (caddr_t)&eh->ipoib_dest, IPOIB_ADDRL); 486 ipoib_ptxhdr_t eh; local 515 eh.ipoib_rhdr.ipoib_type = htons(ETHERTYPE_IP); 516 eh.ipoib_rhdr.ipoib_mbz = 0; 536 result = mac_get_arp(&tmpip, (void *)&eh.ipoib_dest, 548 bcopy((caddr_t)&ibdbroadcastaddr, (caddr_t)&eh [all...] |
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 409 struct ether_header eh; local 425 IEEE80211_ADDR_COPY(&eh.ether_dhost, mhi.mhi_daddr); 426 IEEE80211_ADDR_COPY(&eh.ether_shost, mhi.mhi_saddr); 427 eh.ether_type = htons(mhi.mhi_origsap); 431 bcopy(&eh, mp->b_rptr, sizeof (struct ether_header));
|
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/ |
H A D | boot2.c | 164 Elf32_Ehdr eh; local 182 if (xfsread(ino, &eh, sizeof(eh))) 184 if (!IS_ELF(eh)) { 188 fs_off = eh.e_phoff; 189 for (j = i = 0; i < eh.e_phnum && j < 2; i++) { 206 addr = eh.e_entry;
|
/illumos-gate/usr/src/boot/sys/boot/arm/ixp425/boot2/ |
H A D | boot2.c | 168 Elf32_Ehdr eh; local 187 if (xfsread(ino, &eh, sizeof(eh))) 189 if (!IS_ELF(eh)) { 193 fs_off = eh.e_phoff; 194 for (j = i = 0; i < eh.e_phnum && j < 2; i++) { 211 addr = eh.e_entry & 0x0fffffff;
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp_dlpi.c | 1098 mblk_t *eh; local 1101 if ((eh = allocb(sizeof (struct ether_header), BPRI_MED)) == NULL) { 1122 eh->b_wptr += sizeof (struct ether_header); 1123 bzero((caddr_t)eh->b_rptr, sizeof (struct ether_header)); 1124 ((struct ether_header *)eh->b_rptr)->ether_type = htons((int16_t)type); 1126 linkb(eh, mp); 1127 return (eh);
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_tx.c | 680 struct ether_header *eh; local 748 eh = (struct ether_header *)(void *)mp->b_rptr; 749 if (ntohs(eh->ether_type) == VLAN_TPID) { 758 etype = ntohs(eh->ether_type);
|
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/ |
H A D | zfsboot.c | 394 Elf32_Ehdr eh; member in union:__anon278 412 else if (IS_ELF(hdr.eh)) 456 lseek(fd, hdr.eh.e_phoff, SEEK_SET); 457 for (j = i = 0; i < hdr.eh.e_phnum && j < 2; i++) { 475 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { 476 lseek(fd, hdr.eh.e_shoff + sizeof(es[0]) * (hdr.eh.e_shstrndx + 1), 493 addr = hdr.eh.e_entry & 0xffffff;
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | agent.c | 64 iu_eh_t *eh; variable 203 eh = iu_eh_create(); 205 if (eh == NULL || tq == NULL) { 228 (void) iu_eh_register_signal(eh, SIGTHAW, refresh_smachs, NULL); 287 if (iu_register_event(eh, ipc_fd, POLLIN, accept_event, 0) == -1) { 315 if (iu_register_event(eh, rtsock_fd, POLLIN, rtsock_event, 0) == -1) { 344 switch (iu_handle_events(eh, tq)) { 364 (void) iu_eh_unregister_signal(eh, SIGTHAW, NULL); 366 iu_eh_destroy(eh); 422 if (iu_register_event(eh, client_f [all...] |