/src/sys/lib/libsa/ |
ether.c | 64 struct ether_header *eh; local in function:sendether 71 eh = (struct ether_header *)pkt - 1; 72 len += sizeof(*eh); 74 MACPY(d->myea, eh->ether_shost); /* by byte */ 75 MACPY(dea, eh->ether_dhost); /* by byte */ 76 eh->ether_type = htons(etype); 78 n = netif_put(d, eh, len); 79 if (n == -1 || (size_t)n < sizeof(*eh)) 82 n -= (ssize_t)sizeof(*eh); 96 struct ether_header *eh; local in function:readether [all...] |
/src/usr.bin/crunch/crunchide/ |
exec_ecoff.c | 58 struct ecoff_exechdr eh; local in function:check_ecoff 67 if (sb.st_size < (off_t)sizeof eh) 69 if (read(fd, &eh, sizeof eh) != sizeof eh) 72 if (ECOFF_BADMAG(&eh))
|
exec_aout.c | 80 struct exec eh; local in function:check_aout 88 if(infstat.st_size < (ssize_t)sizeof eh) 90 if(read(inf, &eh, sizeof eh) != sizeof eh) 93 if(N_BADMAG(eh))
|
/src/sys/arch/arm/arm/ |
cpu_exec.c | 55 const Elf_Ehdr * const eh = eh0; local in function:arm_netbsd_elf32_probe 57 (eh->e_flags & EF_ARM_EABIMASK) >= EF_ARM_EABI_VER4; 69 const bool be8_p = (eh->e_flags & EF_ARM_BE8) != 0;
|
core_machdep.c | 120 Elf_Ehdr * const eh = arg; local in function:arm_netbsd_elf32_coredump_setup 126 eh->e_flags |= EF_ARM_EABI_VER5; 133 eh->e_flags |= EF_ARM_BE8;
|
/src/sys/compat/freebsd/ |
freebsd_exec_elf32.c | 56 Elf_Ehdr *eh = (Elf_Ehdr *) veh; local in function:ELFNAME2 69 if ((eh->e_ident[EI_BRAND] == '\0' || 70 strcmp(&eh->e_ident[EI_BRAND], wantBrand) != 0) && 71 eh->e_ident[EI_OSABI] != ELFOSABI_FREEBSD)
|
/src/sys/arch/aarch64/aarch64/ |
exec_machdep.c | 74 const Elf32_Ehdr * const eh = eh0; local in function:aarch64_netbsd_elf32_probe 76 (eh->e_flags & EF_ARM_EABIMASK) >= EF_ARM_EABI_VER4; 83 if ((eh->e_flags & EF_ARM_BE8) == 0)
|
/src/usr.sbin/btpand/ |
packet.c | 57 exthdr_t *eh; local in function:packet_free 62 while ((eh = STAILQ_FIRST(&pkt->extlist)) != NULL) { 64 free(eh);
|
/src/sys/arch/macppc/stand/ofwboot/ |
netif_of.c | 143 struct ether_header *eh; local in function:netif_put 147 eh = pkt; 148 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 149 printf("src: %s ", ether_sprintf(eh->ether_shost)); 150 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); 210 struct ether_header *eh = pkt; local in function:netif_get 212 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 213 printf("src: %s ", ether_sprintf(eh->ether_shost)); 214 printf("type: 0x%x\n", eh->ether_type & 0xFFFF);
|
/src/sys/arch/mvme68k/stand/bootxx/ |
bootxx.c | 107 Elf32_Ehdr eh; member in union:copyboot::boothead 137 else if (memcmp(x->eh.e_ident, ELFMAG, SELFMAG) == 0) { 138 Elf32_Phdr *ep = (Elf32_Phdr *)(*addr + x->eh.e_phoff);
|
/src/sys/arch/ofppc/stand/ofwboot/ |
netif_of.c | 139 struct ether_header *eh; local in function:netif_put 143 eh = pkt; 144 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 145 printf("src: %s ", ether_sprintf(eh->ether_shost)); 146 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); 202 struct ether_header *eh = pkt; local in function:netif_get 204 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 205 printf("src: %s ", ether_sprintf(eh->ether_shost)); 206 printf("type: 0x%x\n", eh->ether_type & 0xFFFF);
|
/src/sys/arch/shark/stand/ofwboot/ |
netif_of.c | 139 struct ether_header *eh; local in function:netif_put 143 eh = pkt; 144 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 145 printf("src: %s ", ether_sprintf(eh->ether_shost)); 146 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); 202 struct ether_header *eh = pkt; local in function:netif_get 204 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 205 printf("src: %s ", ether_sprintf(eh->ether_shost)); 206 printf("type: 0x%x\n", eh->ether_type & 0xFFFF);
|
/src/sys/arch/xen/xen/ |
xennet_checksum.c | 77 const struct ether_header *eh; local in function:xennet_checksum_fill 93 eh = m_extract(m, 0, sizeof(*eh)); 94 if (eh == NULL) { 98 etype = eh->ether_type;
|
/src/sys/arch/mips/mips/ |
cpu_exec.c | 97 const Elf32_Ehdr * const eh = eh0; local in function:mips_netbsd_elf32_probe 106 switch (eh->e_flags & EF_MIPS_ARCH) { 137 switch (eh->e_flags & (EF_MIPS_ABI|EF_MIPS_ABI2)) { 144 printf("pid %d(%s): ABI set to N32 (e_flags=%#x)\n", p->p_pid, p->p_comm, eh->e_flags); 158 printf("pid %d(%s): ABI set to O32 (e_flags=%#x)\n", p->p_pid, p->p_comm, eh->e_flags); 173 Elf32_Ehdr * const eh = eh0; local in function:coredump_elf32_setup 179 eh->e_flags |= EF_MIPS_ARCH_64R2; 181 eh->e_flags |= EF_MIPS_ARCH_64; 183 eh->e_flags |= EF_MIPS_ARCH_32R2; 185 eh->e_flags |= EF_MIPS_ARCH_32 215 const Elf64_Ehdr * const eh = eh0; local in function:mips_netbsd_elf64_probe 282 Elf64_Ehdr * const eh = eh0; local in function:coredump_elf64_setup [all...] |
/src/sys/dev/pci/ixgbe/ |
if_fdir.c | 93 struct ether_vlan_header *eh; local in function:ixgbe_atr 99 eh = mtod(mp, struct ether_vlan_header *); 100 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) { 102 etype = eh->evl_proto; 105 etype = eh->evl_encap_proto;
|
/src/sys/arch/x68k/stand/boot/ |
if_ne.c | 117 struct ether_header *eh; local in function:ne_put 119 eh = pkt; 120 printf("dst: %s\n", ether_sprintf(eh->ether_dhost)); 121 printf("src: %s\n", ether_sprintf(eh->ether_shost)); 122 printf("type: 0x%x\n", eh->ether_type & 0xffff);
|
/src/sys/arch/newsmips/stand/boot/ |
netif_news.c | 115 struct ether_header *eh; local in function:netif_put 119 eh = pkt; 120 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 121 printf("src: %s ", ether_sprintf(eh->ether_shost)); 122 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); 179 struct ether_header *eh = pkt; local in function:netif_get 181 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 182 printf("src: %s ", ether_sprintf(eh->ether_shost)); 183 printf("type: 0x%x\n", eh->ether_type & 0xFFFF);
|
/src/sys/arch/sparc/stand/common/ |
netif_sun.c | 140 struct ether_header *eh; local in function:netif_put 144 eh = pkt; 145 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 146 printf("src: %s ", ether_sprintf(eh->ether_shost)); 147 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); 204 struct ether_header *eh = pkt; local in function:netif_get 206 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 207 printf("src: %s ", ether_sprintf(eh->ether_shost)); 208 printf("type: 0x%x\n", eh->ether_type & 0xFFFF);
|
/src/sys/arch/sparc/stand/ofwboot/ |
netif_of.c | 148 struct ether_header *eh; local in function:netif_put 152 eh = pkt; 153 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 154 printf("src: %s ", ether_sprintf(eh->ether_shost)); 155 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); 214 struct ether_header *eh = pkt; local in function:netif_get 216 printf("dst: %s ", ether_sprintf(eh->ether_dhost)); 217 printf("src: %s ", ether_sprintf(eh->ether_shost)); 218 printf("type: 0x%x\n", eh->ether_type & 0xFFFF);
|
/src/sys/net/agr/ |
if_agrether_hash.c | 75 const struct ether_header *eh; local in function:agrether_hashmbuf 81 eh = agr_m_extract(m, off, sizeof(*eh), &eh_store); 82 if (eh == NULL) { 86 hash = HASH(&eh->ether_dhost, sizeof(eh->ether_dhost), hash); 87 hash = HASH(&eh->ether_shost, sizeof(eh->ether_shost), hash); 88 etype = eh->ether_type; 102 off += sizeof(*vlanhdr) - sizeof(*eh); [all...] |
/src/sys/arch/landisk/landisk/ |
machdep.c | 165 Elf_Ehdr *eh = (void *)end; local in function:landisk_startup 166 Elf_Shdr *sh = (void *)(end + eh->e_shoff); 169 for (i = 0; i < eh->e_shnum; i++, sh++) {
|
/src/sys/compat/linux/arch/amd64/ |
linux_exec_machdep.c | 131 Elf_Ehdr *eh; local in function:ELFNAME2 149 eh = (Elf_Ehdr *)pack->ep_hdr; 155 phsize = eh->e_phnum * sizeof(Elf_Phdr); 157 error = exec_read(l, pack->ep_vp, eh->e_phoff, ph, phsize, 0); 159 for (i = 0; i < eh->e_phnum; i++) { 191 esd.ai[i++].a_v = (ap ? ap->arg_phentsize : eh->e_phentsize); 194 esd.ai[i++].a_v = (ap ? ap->arg_phnum : eh->e_phnum); 203 esd.ai[i++].a_v = (ap ? ap->arg_entry : eh->e_entry);
|
/src/sys/arch/hpc/stand/hpcboot/ |
load_elf.cpp | 211 Elf_Ehdr *eh = reinterpret_cast<Elf_Ehdr *>(_sym_blk.header); local in function:ElfLoader::symbol_block_size 218 memcpy(eh, &_eh, sizeof(Elf_Ehdr)); 219 eh->e_phoff = 0; 220 eh->e_phnum = 0; 221 eh->e_entry = 0; // XXX NetBSD kernel check this member. see machdep.c 222 eh->e_shoff = sizeof(Elf_Ehdr);
|
/src/sys/arch/prep/stand/installboot/ |
installboot.c | 77 Elf32_Ehdr eh; local in function:load_boot 98 if (read(fd, &eh, sizeof(eh)) != sizeof(eh)) { 99 warn("read: eh: %s", boot); 102 if (memcmp(eh.e_ident, ELFMAG, SELFMAG) != 0 || 103 eh.e_ident[EI_CLASS] != ELFCLASS32) { 107 if (be16toh(eh.e_machine) != EM_PPC) { 112 for (i = 0; i < be16toh(eh.e_phnum); i++) { 113 (void)lseek(fd, be32toh(eh.e_phoff) + sizeof(ph) * i, SEEK_SET) [all...] |
/src/sys/dev/ic/ |
am7990.c | 541 struct ether_header eh; local in function:am7990_recv_print 552 if (len >= sizeof(eh)) { 553 (*sc->sc_copyfrombuf)(sc, &eh, LE_RBUFADDR(sc, no), sizeof(eh)); 555 ether_sprintf(eh.ether_dhost)); 556 printf(" src %s type %04x\n", ether_sprintf(eh.ether_shost), 557 ntohs(eh.ether_type)); 566 struct ether_header eh; local in function:am7990_xmit_print 577 if (len >= sizeof(eh)) { 578 (*sc->sc_copyfrombuf)(sc, &eh, LE_TBUFADDR(sc, no), sizeof(eh)) [all...] |