HomeSort by: relevance | last modified time | path
    Searched refs:eh (Results 1 - 25 of 142) sorted by relevancy

1 2 3 4 5 6

  /src/sys/arch/sun2/include/
elf_machdep.h 11 #define ELF32_EHDR_FLAGS_OK(eh) \
12 (((eh)->e_flags & EF_M68000) != 0)
  /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/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/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/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/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/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/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/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/kern/
exec_elf.c 129 elf_placedynexec(struct exec_package *epp, Elf_Ehdr *eh, Elf_Phdr *ph)
134 for (align = 1, i = 0; i < eh->e_phnum; i++)
147 for (i = 0; i < eh->e_phnum; i++)
150 eh->e_entry += offset;
287 elf_check_header(Elf_Ehdr *eh)
290 if (memcmp(eh->e_ident, ELFMAG, SELFMAG) != 0 ||
291 eh->e_ident[EI_CLASS] != ELFCLASS) {
293 "e_ident[EI_CLASS] %#x", eh->e_ident[EI_MAG0],
294 eh->e_ident[EI_MAG1], eh->e_ident[EI_MAG2]
425 Elf_Ehdr eh; local in function:elf_load_interp
652 Elf_Ehdr *eh = epp->ep_hdr; local in function:exec_elf_makecmds
    [all...]
  /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/dev/
kloader.c 171 Elf_Ehdr eh; local in function:kloader_load
191 kloader_read(0, sizeof(Elf_Ehdr), &eh);
193 if (eh.e_ident[EI_MAG0] != ELFMAG0 ||
194 eh.e_ident[EI_MAG1] != ELFMAG1 ||
195 eh.e_ident[EI_MAG2] != ELFMAG2 ||
196 eh.e_ident[EI_MAG3] != ELFMAG3) {
202 phsz = eh.e_phentsize * eh.e_phnum;
207 if (kloader_read(eh.e_phoff, phsz, ph) != 0) {
213 shsz = eh.e_shentsize * eh.e_shnum
    [all...]
  /src/sys/compat/linux/common/
linux_exec_elf32.c 94 Elf_Ehdr *eh)
106 shsize = eh->e_shnum * sizeof(Elf_Shdr);
108 error = exec_read(l, epp->ep_vp, eh->e_shoff, sh, shsize,
114 shstrndx = eh->e_shstrndx;
115 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) {
122 for (i = 0; i < eh->e_shnum; i++) {
162 Elf_Ehdr *eh)
171 shsize = eh->e_shnum * sizeof(Elf_Shdr);
173 error = exec_read(l, epp->ep_vp, eh->e_shoff, sh, shsize,
178 for (i = 0; i < eh->e_shnum; i++)
    [all...]
  /src/sys/compat/netbsd32/
netbsd32_exec_elf32.c 85 void *eh, char *itp, vaddr_t *pos);
91 void *eh, char *itp, vaddr_t *pos)
95 if ((error = ELFNAME2(netbsd,signature)(l, epp, eh)) != 0)
99 if ((error = ELF_MD_PROBE_FUNC(l, epp, eh, itp, pos)) != 0)
105 return ELFNAME2(netbsd32,probe_noteless)(l, epp, eh, itp, pos);
110 void *eh, char *itp, vaddr_t *pos)
  /src/sys/arch/mvme68k/stand/sboot/
etherfun.c 39 eh->ether_dhost[i] = 0xff;
41 memcpy(eh->ether_shost, myea, 6);
42 eh->ether_type = ETYPE_RARP;
65 if (eh->ether_type == ETYPE_RARP && rarp->ar_op == OPCODE_REPLY) {
111 memcpy (eh->ether_dhost, servea, sizeof(servea));
112 memcpy (eh->ether_shost, myea, sizeof(myea));
113 eh->ether_type = ETYPE_IP;
174 if ((eh->ether_type != ETYPE_IP) ||
  /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/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/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/pmax/stand/common/
if_prom.c 251 struct ether_header *eh = (struct ether_header *)pkt; local in function:fill_arpcache
252 struct ip *ih = (struct ip *)(eh + 1);
259 if (ntohs(eh->ether_type) == 0x0800) {
272 al->ea[i] = eh->ether_shost[i];
282 struct ether_header *eh = (struct ether_header *)pkt; local in function:dump_packet_info
283 struct ip *ih = (struct ip *)(eh + 1);
285 printf("ether_dhost = %s\n", ether_sprintf(eh->ether_dhost));
286 printf("ether_shost = %s\n", ether_sprintf(eh->ether_shost));
287 printf("ether_type = 0x%x\n", ntohs(eh->ether_type));
289 if (ntohs(eh->ether_type) == 0x0800)
    [all...]
  /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);

Completed in 25 milliseconds

1 2 3 4 5 6