/titanic_50/usr/src/lib/libinetutil/common/ |
H A D | eh.c | 60 iu_eh_t *eh = malloc(sizeof (iu_eh_t)); in iu_eh_create() local 63 if (eh == NULL) in iu_eh_create() 66 eh->iueh_pollfds = NULL; in iu_eh_create() 67 eh->iueh_events = NULL; in iu_eh_create() 68 eh->iueh_shutdown = NULL; in iu_eh_create() 69 eh->iueh_num_fds = 0; in iu_eh_create() 70 eh->iueh_stop = B_FALSE; in iu_eh_create() 71 eh->iueh_reason = 0; in iu_eh_create() 72 eh->iueh_shutdown_arg = NULL; in iu_eh_create() 74 (void) sigemptyset(&eh->iueh_sig_regset); in iu_eh_create() [all …]
|
/titanic_50/usr/src/cmd/sgs/libelf/common/ |
H A D | update.c | 163 Ehdr * eh = elf->ed_ehdr; in _elf_upd_lib() local 164 unsigned ver = eh->e_version; in _elf_upd_lib() 165 register char *p = (char *)eh->e_ident; in _elf_upd_lib() 180 eh->e_ehsize = (Half)hi; in _elf_upd_lib() 181 if (eh->e_phnum != 0) { in _elf_upd_lib() 183 eh->e_phentsize = (Half)elf_fsize(ELF_T_PHDR, 1, ver); in _elf_upd_lib() 185 eh->e_phoff = (Off)hi; in _elf_upd_lib() 186 hi += eh->e_phentsize * eh->e_phnum; in _elf_upd_lib() 188 eh->e_phoff = 0; in _elf_upd_lib() 189 eh->e_phentsize = 0; in _elf_upd_lib() [all …]
|
H A D | clscook.c | 301 Ehdr * eh = elf->ed_ehdr; /* must be present */ in _elf_phdr() local 304 if (eh->e_phnum == 0) in _elf_phdr() 308 if (eh->e_phentsize != fsz) { in _elf_phdr() 313 fsz *= eh->e_phnum; in _elf_phdr() 315 msz = _elf_msize(ELF_T_PHDR, work) * eh->e_phnum; in _elf_phdr() 316 if ((eh->e_phoff == 0) || in _elf_phdr() 317 (elf->ed_fsz <= eh->e_phoff) || in _elf_phdr() 318 (elf->ed_fsz - eh->e_phoff < fsz)) { in _elf_phdr() 323 if (inplace && fsz >= msz && eh->e_phoff % sizeof (ElfField) == 0) { in _elf_phdr() 324 elf->ed_phdr = (Elf_Void *)(elf->ed_ident + eh->e_phoff); in _elf_phdr() [all …]
|
H A D | newehdr.c | 66 Ehdr *eh; in elf_newehdr() local 78 if ((eh = (Ehdr *)getehdr(elf)) != 0) { in elf_newehdr() 83 return (eh); in elf_newehdr() 98 if ((eh = (Ehdr *)getehdr(elf)) != 0) { /* this cooks if necessary */ in elf_newehdr() 102 return (eh); in elf_newehdr() 106 if ((eh = (Ehdr *)malloc(sizeof (Ehdr))) == 0) { in elf_newehdr() 111 *eh = _elf_ehdr_init; in elf_newehdr() 114 elf->ed_ehdr = eh; in elf_newehdr() 116 return (eh); in elf_newehdr()
|
/titanic_50/usr/src/common/net/wanboot/crypt/ |
H A D | cbc_test.c | 69 void *eh; in cbctest() local 75 ret = des3_init(&eh); in cbctest() 78 ret = aes_init(&eh); in cbctest() 81 ret = aes_init(&eh); in cbctest() 84 ret = aes_init(&eh); in cbctest() 100 des3_key(eh, (uint8_t *)DES3_KEY); in cbctest() 101 cbc_makehandle(&ch, eh, DES3_KEY_SIZE, DES3_BLOCK_SIZE, in cbctest() 105 aes_key(eh, (uint8_t *)AES_128_KEY, AES_128_KEY_SIZE); in cbctest() 106 cbc_makehandle(&ch, eh, AES_128_KEY_SIZE, AES_BLOCK_SIZE, in cbctest() 110 aes_key(eh, (uint8_t *)AES_192_KEY, AES_192_KEY_SIZE); in cbctest() [all …]
|
/titanic_50/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 75 Elf64_Ehdr *eh; in dboot_elfload64() local 88 eh = getehdr(); in dboot_elfload64() 89 if (eh == NULL) in dboot_elfload64() 92 if (eh->e_type != ET_EXEC) in dboot_elfload64() 93 dboot_panic("not ET_EXEC, e_type = 0x%x", eh->e_type); in dboot_elfload64() 95 if (eh->e_phnum == 0 || eh->e_phoff == 0) in dboot_elfload64() 101 allphdrs = PGETBYTES(eh->e_phoff); in dboot_elfload64() 104 eh->e_phnum); in dboot_elfload64() 109 sechdrs = PGETBYTES(eh->e_shoff); in dboot_elfload64() 112 eh->e_shnum); in dboot_elfload64() [all …]
|
/titanic_50/usr/src/tools/elfextract/ |
H A D | elfextract.c | 52 extract32(Elf32_Ehdr *eh) in extract32() argument 63 if (eh->e_type != ET_EXEC) { in extract32() 65 pname, eh->e_type); in extract32() 68 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract32() 76 allphdrs = ELFSEEK(eh->e_phoff); in extract32() 79 pname, eh->e_phnum); in extract32() 86 for (i = 0; i < eh->e_phnum; i++) { in extract32() 88 phdr = (Elf32_Phdr *)(allphdrs + eh->e_phentsize * i); in extract32() 122 extract64(Elf64_Ehdr *eh) in extract64() argument 133 if (eh->e_type != ET_EXEC) { in extract64() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | plock.c | 79 struct exec *eh; /* exec header */ in apply_lock() local 129 eh = (struct exec *)lmp->lm_addr; in apply_lock() 132 a = (caddr_t)eh; in apply_lock() 133 l = (u_int)eh->a_text; in apply_lock() 136 a = (caddr_t)((u_int)eh + N_DATADDR(*eh) - in apply_lock() 137 N_TXTADDR(*eh)); in apply_lock() 138 l = (u_int)eh->a_data + (u_int)eh->a_bss; in apply_lock()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/ |
H A D | encr.c | 226 void *eh; in encr_gen_3des() local 232 if (des3_init(&eh) != 0) { in encr_gen_3des() 235 des3_key(eh, key); in encr_gen_3des() 240 cbc_makehandle(&ch, eh, ka->ka_len, DES3_BLOCK_SIZE, in encr_gen_3des() 251 des3_fini(eh); in encr_gen_3des() 267 void *eh; in encr_gen_aes() local 273 if (aes_init(&eh) != 0) { in encr_gen_aes() 276 aes_key(eh, key, ka->ka_len); in encr_gen_aes() 281 cbc_makehandle(&ch, eh, ka->ka_len, AES_BLOCK_SIZE, in encr_gen_aes() 292 aes_fini(eh); in encr_gen_aes()
|
/titanic_50/usr/src/tools/mbh_patch/ |
H A D | mbh_patch.c | 105 patch64(Elf64_Ehdr *eh) in patch64() argument 117 if (eh->e_type != ET_EXEC) { in patch64() 119 pname, fname, eh->e_type); in patch64() 122 if ((eh->e_phnum == 0) || (eh->e_phoff == 0)) { in patch64() 131 if ((phdrs = ELFSEEK(eh->e_phoff)) == NULL) { in patch64() 133 "hdrs\n", pname, fname, eh->e_phnum); in patch64() 180 for (ndx = 0; ndx < eh->e_phnum; ndx++) { in patch64() 182 phdr = (Elf64_Phdr *)(phdrs + eh->e_phentsize * ndx); in patch64() 207 if (eh->e_entry != phdr->p_paddr) { in patch64()
|
/titanic_50/usr/src/stand/lib/inet/ |
H A D | ethernet.c | 294 struct ether_header *eh; in ether_input() local 378 eh = (struct ether_header *)mac_state.mac_buf; in ether_input() 379 if (eh->ether_type == ntohs(ETHERTYPE_IP) && in ether_input() 416 if (eh->ether_type == ntohs(ETHERTYPE_ARP) && in ether_input() 442 (caddr_t)&eh->ether_dhost, in ether_input() 445 (caddr_t)&eh->ether_shost, in ether_input() 494 struct ether_header eh; in ether_output() local 528 eh.ether_type = htons(ETHERTYPE_IP); in ether_output() 529 bcopy(mac_state.mac_addr_buf, (caddr_t)&eh.ether_shost, in ether_output() 558 result = mac_get_arp(&tmpip, (void *)&eh.ether_dhost, in ether_output() [all …]
|
H A D | ibd.c | 293 ipoib_ptxhdr_t *eh; in ibd_input() local 378 eh = (ipoib_ptxhdr_t *)mac_state.mac_buf; in ibd_input() 379 if (eh->ipoib_rhdr.ipoib_type == ntohs(ETHERTYPE_IP) && in ibd_input() 415 if (eh->ipoib_rhdr.ipoib_type == ntohs(ETHERTYPE_ARP) && in ibd_input() 440 (caddr_t)&eh->ipoib_dest, IPOIB_ADDRL); in ibd_input() 486 ipoib_ptxhdr_t eh; in ibd_output() local 515 eh.ipoib_rhdr.ipoib_type = htons(ETHERTYPE_IP); in ibd_output() 516 eh.ipoib_rhdr.ipoib_mbz = 0; in ibd_output() 536 result = mac_get_arp(&tmpip, (void *)&eh.ipoib_dest, in ibd_output() 548 bcopy((caddr_t)&ibdbroadcastaddr, (caddr_t)&eh.ipoib_dest, in ibd_output() [all …]
|
/titanic_50/usr/src/psm/stand/boot/sparc/common/ |
H A D | wanboot.c | 1146 encr_fini(encr_type_t etype, void *eh) in encr_fini() argument 1150 des3_fini(eh); in encr_fini() 1153 aes_fini(eh); in encr_fini() 1224 void *eh; in process_wanbootfs() local 1251 if (des3_init(&eh) != 0) { in process_wanbootfs() 1255 des3_key(eh, g_encr_key); in process_wanbootfs() 1256 cbc_makehandle(&ch, eh, DES3_KEY_SIZE, block_size, in process_wanbootfs() 1263 if (aes_init(&eh) != 0) { in process_wanbootfs() 1267 aes_key(eh, g_encr_key, AES_128_KEY_SIZE); in process_wanbootfs() 1268 cbc_makehandle(&ch, eh, AES_128_KEY_SIZE, block_size, in process_wanbootfs() [all …]
|
/titanic_50/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 409 struct ether_header eh; in mac_wifi_header_uncook() local 425 IEEE80211_ADDR_COPY(&eh.ether_dhost, mhi.mhi_daddr); in mac_wifi_header_uncook() 426 IEEE80211_ADDR_COPY(&eh.ether_shost, mhi.mhi_saddr); in mac_wifi_header_uncook() 427 eh.ether_type = htons(mhi.mhi_origsap); in mac_wifi_header_uncook() 431 bcopy(&eh, mp->b_rptr, sizeof (struct ether_header)); in mac_wifi_header_uncook()
|
/titanic_50/usr/src/lib/libinetutil/ |
H A D | Makefile.com | 28 OBJECTS = octet.o inetutil.o ifspec.o ifaddrlist.o ifaddrlistx.o eh.o tq.o \ 41 $(SRCDIR)/ifspec.c $(SRCDIR)/eh.c $(SRCDIR)/tq.c \
|
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | agent.c | 64 iu_eh_t *eh; variable 203 eh = iu_eh_create(); in main() 205 if (eh == NULL || tq == NULL) { in main() 228 (void) iu_eh_register_signal(eh, SIGTHAW, refresh_smachs, NULL); in main() 287 if (iu_register_event(eh, ipc_fd, POLLIN, accept_event, 0) == -1) { in main() 315 if (iu_register_event(eh, rtsock_fd, POLLIN, rtsock_event, 0) == -1) { in main() 344 switch (iu_handle_events(eh, tq)) { in main() 364 (void) iu_eh_unregister_signal(eh, SIGTHAW, NULL); in main() 366 iu_eh_destroy(eh); in main() 422 if (iu_register_event(eh, client_fd, POLLIN, ipc_event, in accept_event() [all …]
|
H A D | script_handler.c | 226 (void) iu_unregister_event(eh, dsmp->dsm_script_event_id, NULL); in script_cleanup() 344 event_id = iu_register_event(eh, fds[0], POLLIN, script_exit, dsmp); in script_start()
|
H A D | agent.h | 58 extern iu_eh_t *eh;
|
H A D | util.c | 398 iu_stop_handling_events(eh, DHCP_REASON_INACTIVITY, NULL, NULL); in inactivity_shutdown() 411 iu_stop_handling_events(eh, (sig == SIGTERM ? DHCP_REASON_TERMINATE : in graceful_shutdown()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | events.c | 489 struct ether_header *eh; in receive_packet() local 519 eh = (struct ether_header *)buffer; in receive_packet() 520 rc = STP_IN_check_bpdu_header((BPDU_T *)&eh->ether_type, buflen); in receive_packet() 531 (void) _link_ntoa(eh->ether_shost.ether_addr_octet, in receive_packet() 546 (void) _link_ntoa(eh->ether_shost.ether_addr_octet, in receive_packet() 552 (BPDU_T *)&eh->ether_type, buflen); in receive_packet() 555 (void) _link_ntoa(eh->ether_shost.ether_addr_octet, sender, in receive_packet()
|
/titanic_50/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 139 struct ether_header *eh; in myri10ge_lro_rx() local 149 eh = (struct ether_header *)(void *)m_head->b_rptr; in myri10ge_lro_rx() 150 if (eh->ether_type != htons(ETHERTYPE_IP)) in myri10ge_lro_rx() 152 ip = (struct ip *)(void *)(eh + 1); in myri10ge_lro_rx()
|
H A D | myri10ge.c | 1776 struct ether_header *eh; in myri10ge_send_hash() local 1793 ehl = sizeof (*eh); in myri10ge_send_hash() 1797 eh = (struct ether_header *)(void *)mp->b_rptr; in myri10ge_send_hash() 1798 ip = (struct ip *)(void *)(eh + 1); in myri10ge_send_hash() 1799 if (eh->ether_type != BE_16(ETHERTYPE_IP)) { in myri10ge_send_hash() 1800 if (eh->ether_type != BE_16(ETHERTYPE_VLAN)) in myri10ge_send_hash() 2316 struct ether_header *eh; in myri10ge_rx_csum() local 2323 eh = (struct ether_header *)(void *)mp->b_rptr; in myri10ge_rx_csum() 2324 hdrlen = sizeof (*eh); in myri10ge_rx_csum() 2325 if (eh->ether_dhost.ether_addr_octet[0] & 1) { in myri10ge_rx_csum() [all …]
|
/titanic_50/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp_dlpi.c | 1098 mblk_t *eh; in sppp_dladdether() local 1101 if ((eh = allocb(sizeof (struct ether_header), BPRI_MED)) == NULL) { in sppp_dladdether() 1122 eh->b_wptr += sizeof (struct ether_header); in sppp_dladdether() 1123 bzero((caddr_t)eh->b_rptr, sizeof (struct ether_header)); in sppp_dladdether() 1124 ((struct ether_header *)eh->b_rptr)->ether_type = htons((int16_t)type); in sppp_dladdether() 1126 linkb(eh, mp); in sppp_dladdether() 1127 return (eh); in sppp_dladdether()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_tx.c | 680 struct ether_header *eh; in oce_send_packet() local 748 eh = (struct ether_header *)(void *)mp->b_rptr; in oce_send_packet() 749 if (ntohs(eh->ether_type) == VLAN_TPID) { in oce_send_packet() 758 etype = ntohs(eh->ether_type); in oce_send_packet()
|
/titanic_50/usr/src/uts/common/pcmcia/sys/ |
H A D | cs_priv.h | 577 #define CREATE_SOCKET_EVENT_THREAD(eh, csp) \ argument 578 thread_create(NULL, 0, eh, (void *)csp, \
|