Home
last modified time | relevance | path

Searched refs:eh (Results 1 – 25 of 159) sorted by relevance

1234567

/dragonfly/stand/lib/
H A Dether.c58 struct ether_header *eh; in sendether() local
66 len += sizeof(*eh); in sendether()
70 eh->ether_type = htons(etype); in sendether()
72 n = netif_put(d, eh, len); in sendether()
73 if (n == -1 || n < sizeof(*eh)) in sendether()
76 n -= sizeof(*eh); in sendether()
90 struct ether_header *eh; in readether() local
98 len += sizeof(*eh); in readether()
101 if (n == -1 || n < sizeof(*eh)) in readether()
114 *etype = ntohs(eh->ether_type); in readether()
[all …]
/dragonfly/sbin/dhclient/
H A Dpacket.c91 struct ether_header eh; in assemble_hw_header() local
94 memcpy(eh.ether_dhost, to->haddr, sizeof(eh.ether_dhost)); in assemble_hw_header()
96 memset(eh.ether_dhost, 0xff, sizeof(eh.ether_dhost)); in assemble_hw_header()
99 sizeof(eh.ether_shost)); in assemble_hw_header()
101 memset(eh.ether_shost, 0x00, sizeof(eh.ether_shost)); in assemble_hw_header()
103 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()
149 struct ether_header eh; in decode_hw_header() local
151 memcpy(&eh, buf + bufix, ETHER_HEADER_SIZE); in decode_hw_header()
153 memcpy(from->haddr, eh.ether_shost, sizeof(eh.ether_shost)); in decode_hw_header()
155 from->hlen = sizeof(eh.ether_shost); in decode_hw_header()
[all …]
/dragonfly/sys/net/
H A Dif_ethersubr.c242 edst = eh->ether_dhost; in ether_output()
357 } else if (bcmp(eh->ether_dhost, eh->ether_shost, in ether_output()
464 save_eh = *eh; in ether_output_frame()
1029 eh->ether_dhost[0], in ether_demux_oncpu()
1030 eh->ether_dhost[1], in ether_demux_oncpu()
1031 eh->ether_dhost[2], in ether_demux_oncpu()
1032 eh->ether_dhost[3], in ether_demux_oncpu()
1033 eh->ether_dhost[4], in ether_demux_oncpu()
1034 eh->ether_dhost[5], in ether_demux_oncpu()
1035 eh->ether_shost[0], in ether_demux_oncpu()
[all …]
/dragonfly/stand/boot/pc32/btxld/
H A Dbtxld.c402 eh.p[0].p_vaddr = eh.p[0].p_paddr = hdr->org; in puthdr()
403 eh.p[0].p_filesz = eh.p[0].p_memsz = hdr->text; in puthdr()
404 eh.p[1].p_offset = eh.p[0].p_offset + eh.p[0].p_filesz; in puthdr()
405 eh.p[1].p_vaddr = eh.p[1].p_paddr = in puthdr()
408 eh.sh[2].sh_addr = eh.p[0].p_vaddr; in puthdr()
409 eh.sh[2].sh_offset = eh.p[0].p_offset; in puthdr()
410 eh.sh[2].sh_size = eh.p[0].p_filesz; in puthdr()
411 eh.sh[3].sh_addr = eh.p[1].p_vaddr; in puthdr()
412 eh.sh[3].sh_offset = eh.p[1].p_offset; in puthdr()
413 eh.sh[3].sh_size = eh.p[1].p_filesz; in puthdr()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
H A Dexcept.c1156 fc = crtl->eh.sjlj_fc; in sjlj_emit_function_enter()
1296 fc = crtl->eh.sjlj_fc; in sjlj_emit_dispatch_table()
1457 crtl->eh.sjlj_fc in sjlj_build_landing_pads()
1475 crtl->eh.sjlj_fc in sjlj_build_landing_pads()
2236 if (!crtl->eh.ehr_stackadj) in expand_builtin_eh_return()
2245 if (!crtl->eh.ehr_handler) in expand_builtin_eh_return()
2250 if (!crtl->eh.ehr_label) in expand_builtin_eh_return()
2264 if (! crtl->eh.ehr_label) in expand_eh_return()
3277 i = fun->eh->region_tree; in dump_eh_tree()
3402 if (!fun->eh->region_tree) in verify_eh_tree()
[all …]
/dragonfly/contrib/gcc-4.7/gcc/
H A Dexcept.c1115 fc = crtl->eh.sjlj_fc; in sjlj_emit_function_enter()
1238 fc = crtl->eh.sjlj_fc; in sjlj_emit_dispatch_table()
1375 crtl->eh.sjlj_fc in sjlj_build_landing_pads()
1393 crtl->eh.sjlj_fc in sjlj_build_landing_pads()
2118 if (!crtl->eh.ehr_stackadj) in expand_builtin_eh_return()
2127 if (!crtl->eh.ehr_handler) in expand_builtin_eh_return()
2132 if (!crtl->eh.ehr_label) in expand_builtin_eh_return()
2146 if (! crtl->eh.ehr_label) in expand_eh_return()
3103 i = fun->eh->region_tree; in dump_eh_tree()
3228 if (!fun->eh->region_tree) in verify_eh_tree()
[all …]
/dragonfly/contrib/elftoolchain/libelf/
H A Dlibelf_ar.c111 Elf_Arhdr *eh; in _libelf_ar_gethdr() local
134 e->e_hdr.e_arhdr = eh; in _libelf_ar_gethdr()
137 eh->ar_name = eh->ar_rawname = NULL; in _libelf_ar_gethdr()
174 eh->ar_size = n; in _libelf_ar_gethdr()
179 eh->ar_flags = 0; in _libelf_ar_gethdr()
181 return (eh); in _libelf_ar_gethdr()
184 if (eh) { in _libelf_ar_gethdr()
185 if (eh->ar_name) in _libelf_ar_gethdr()
186 free(eh->ar_name); in _libelf_ar_gethdr()
187 if (eh->ar_rawname) in _libelf_ar_gethdr()
[all …]
H A Dlibelf_extended.c49 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) in _libelf_setshnum() argument
70 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
72 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
79 _libelf_setshstrndx(Elf *e, void *eh, int ec, size_t shstrndx) in _libelf_setshstrndx() argument
100 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx()
102 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx()
108 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) in _libelf_setphnum() argument
129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
H A Dlibelf_ehdr.c87 Elf##SZ##_Ehdr *eh = (E); \
88 eh->e_ident[EI_MAG0] = ELFMAG0; \
89 eh->e_ident[EI_MAG1] = ELFMAG1; \
90 eh->e_ident[EI_MAG2] = ELFMAG2; \
91 eh->e_ident[EI_MAG3] = ELFMAG3; \
92 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \
93 eh->e_ident[EI_DATA] = ELFDATANONE; \
94 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version) & 0xFFU; \
95 eh->e_machine = EM_NONE; \
96 eh->e_type = ELF_K_NONE; \
[all …]
H A Delf_shstrndx.c37 void *eh; in _libelf_getshdrstrndx() local
46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL) in _libelf_getshdrstrndx()
69 void *eh; in elf_setshstrndx() local
74 ((eh = _libelf_ehdr(e, ec, 0)) == NULL)) { in elf_setshstrndx()
79 return (_libelf_setshstrndx(e, eh, ec, strndx)); in elf_setshstrndx()
/dragonfly/contrib/tcpdump/
H A Dprint-rip.c183 const struct rip_entry_header *eh = (const struct rip_entry_header *)p; in rip_entry_print_v1() local
194 print_unknown_data(ndo, p + sizeof(*eh), "\n\t ", RIP_ROUTELEN - sizeof(*eh)); in rip_entry_print_v1()
222 const struct rip_entry_header *eh = (const struct rip_entry_header *)p; in rip_entry_print_v2() local
226 if (remaining < sizeof(*eh)) in rip_entry_print_v2()
228 ND_TCHECK_SIZE(eh); in rip_entry_print_v2()
229 family = GET_BE_U_2(eh->rip_family); in rip_entry_print_v2()
231 uint16_t auth_type = GET_BE_U_2(eh->rip_tag); in rip_entry_print_v2()
233 p += sizeof(*eh); in rip_entry_print_v2()
234 remaining -= sizeof(*eh); in rip_entry_print_v2()
257 return (sizeof(*eh) + remaining); /* AT spans till the packet end */ in rip_entry_print_v2()
[all …]
/dragonfly/sys/net/ipfw3_layer2/
H A Dip_fw3_layer2.c69 *cmd_val = ((*args)->eh != NULL); in check_layer2()
78 if ((*args)->eh != NULL) { in check_mac()
81 uint32_t *hdr = (uint32_t *)(*args)->eh; in check_mac()
96 if ((*args)->eh != NULL) { in check_mac_from()
99 uint16_t *hdr = (uint16_t *)(*args)->eh; in check_mac_from()
124 if ((*args)->eh != NULL) { in check_mac_from_lookup()
127 strncpy(sa.sa_data, (*args)->eh->ether_shost, 6); in check_mac_from_lookup()
139 if ((*args)->eh != NULL) { in check_mac_to()
142 uint16_t *hdr = (uint16_t *)(*args)->eh; in check_mac_to()
167 if ((*args)->eh != NULL) { in check_mac_to_lookup()
[all …]
/dragonfly/contrib/gcc-4.7/libstdc++-v3/libsupc++/
H A Deh_ptr.cc76 __cxa_refcounted_exception *eh = in _M_addref() local
78 __atomic_add_fetch (&eh->referenceCount, 1, __ATOMIC_ACQ_REL); in _M_addref()
88 __cxa_refcounted_exception *eh = in _M_release() local
90 if (__atomic_sub_fetch (&eh->referenceCount, 1, __ATOMIC_ACQ_REL) == 0) in _M_release()
92 if (eh->exc.exceptionDestructor) in _M_release()
93 eh->exc.exceptionDestructor (_M_exception_object); in _M_release()
141 __cxa_exception *eh = __get_exception_header_from_obj (_M_exception_object); in __cxa_exception_type() local
142 return eh->exceptionType; in __cxa_exception_type()
208 __cxa_refcounted_exception *eh in rethrow_exception() local
213 __atomic_add_fetch (&eh->referenceCount, 1, __ATOMIC_ACQ_REL); in rethrow_exception()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/libsupc++/
H A Deh_ptr.cc100 __cxa_refcounted_exception *eh = in _M_addref() local
102 __gnu_cxx::__eh_atomic_inc (&eh->referenceCount); in _M_addref()
112 __cxa_refcounted_exception *eh = in _M_release() local
114 if (__gnu_cxx::__eh_atomic_dec (&eh->referenceCount)) in _M_release()
116 if (eh->exc.exceptionDestructor) in _M_release()
117 eh->exc.exceptionDestructor (_M_exception_object); in _M_release()
161 __cxa_exception *eh = __get_exception_header_from_obj (_M_exception_object); in __cxa_exception_type() local
162 return eh->exceptionType; in __cxa_exception_type()
226 __cxa_refcounted_exception *eh in rethrow_exception() local
231 __gnu_cxx::__eh_atomic_inc (&eh->referenceCount); in rethrow_exception()
/dragonfly/games/hangman/
H A Dgetsym.c113 Elf_Ehdr eh; in ksyms_elf_parse() local
120 if (read(symfd, &eh, sizeof(eh)) != sizeof(eh)) in ksyms_elf_parse()
123 if (!IS_ELF(eh)) in ksyms_elf_parse()
126 if (lseek(symfd, eh.e_shoff, SEEK_SET) == -1) in ksyms_elf_parse()
132 for (s = 0; s < eh.e_shnum; s++) { in ksyms_elf_parse()
/dragonfly/sys/dev/netif/lnc/
H A Dam7990.c214 struct ether_header *eh; in am7990_rint() local
283 eh = mtod(m, struct ether_header *); in am7990_rint()
284 if (memcmp(eh->ether_dhost, sc->sc_enaddr, in am7990_rint()
567 struct ether_header eh; in am7990_recv_print() local
578 if (len - ETHER_CRC_LEN >= sizeof(eh)) { in am7990_recv_print()
579 (*sc->sc_copyfrombuf)(sc, &eh, LE_RBUFADDR(sc, no), sizeof(eh)); in am7990_recv_print()
582 ntohs(eh.ether_type)); in am7990_recv_print()
590 struct ether_header eh; in am7990_xmit_print() local
601 if (len >= sizeof(eh)) { in am7990_xmit_print()
602 (*sc->sc_copyfrombuf)(sc, &eh, LE_TBUFADDR(sc, no), sizeof(eh)); in am7990_xmit_print()
[all …]
H A Dam79900.c255 struct ether_header *eh; in am79900_rint() local
321 eh = mtod(m, struct ether_header *); in am79900_rint()
322 if (memcmp(eh->ether_shost, sc->sc_enaddr, in am79900_rint()
605 struct ether_header eh; in am79900_recv_print() local
615 if (len - ETHER_CRC_LEN >= sizeof(eh)) { in am79900_recv_print()
616 (*sc->sc_copyfrombuf)(sc, &eh, LE_RBUFADDR(sc, no), sizeof(eh)); in am79900_recv_print()
619 ntohs(eh.ether_type)); in am79900_recv_print()
627 struct ether_header eh; in am79900_xmit_print() local
637 if (len >= sizeof(eh)) { in am79900_xmit_print()
638 (*sc->sc_copyfrombuf)(sc, &eh, LE_TBUFADDR(sc, no), sizeof(eh)); in am79900_xmit_print()
[all …]
/dragonfly/sys/netproto/802_11/wlan/
H A Dieee80211_input.c292 if (ETHER_IS_MULTICAST(eh->ether_dhost)) { in ieee80211_deliver_data()
319 struct ether_header *eh; in ieee80211_decap() local
342 m_adj(m, hdrlen - sizeof(*eh)); in ieee80211_decap()
344 eh = mtod(m, struct ether_header *); in ieee80211_decap()
347 IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1); in ieee80211_decap()
348 IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2); in ieee80211_decap()
351 IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr3); in ieee80211_decap()
365 m = ieee80211_realign(vap, m, sizeof(*eh)); in ieee80211_decap()
371 eh = mtod(m, struct ether_header *); in ieee80211_decap()
372 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh)); in ieee80211_decap()
[all …]
H A Dieee80211_output.c315 struct ether_header *eh; in ieee80211_start_pkt() local
413 eh->ether_shost, ":", in ieee80211_start_pkt()
1350 struct ether_header eh; local
1392 eh.ether_dhost,
1442 eh.ether_dhost,
1586 eh.ether_dhost);
1588 eh.ether_shost);
1594 eh.ether_dhost);
1598 eh.ether_shost);
1610 eh.ether_shost);
[all …]
/dragonfly/lib/libc/net/
H A Dip6opt.c101 struct ip6_ext *eh = (struct ip6_ext *)CMSG_DATA(cmsg); in inet6_option_append() local
114 if (bp == (u_char *)eh) { in inet6_option_append()
120 off = bp - (u_char *)eh; in inet6_option_append()
139 off = bp - (u_char *)eh; in inet6_option_append()
146 eh->ip6e_len = ((bp - (u_char *)eh) >> 3) - 1; in inet6_option_append()
170 struct ip6_ext *eh = (struct ip6_ext *)CMSG_DATA(cmsg); in inet6_option_alloc() local
183 if (bp == (u_char *)eh) { in inet6_option_alloc()
189 off = bp - (u_char *)eh; in inet6_option_alloc()
204 off = bp - (u_char *)eh; in inet6_option_alloc()
211 eh->ip6e_len = ((bp - (u_char *)eh) >> 3) - 1; in inet6_option_alloc()
/dragonfly/contrib/binutils-2.34/bfd/
H A Delfxx-x86.c375 if (eh->dyn_relocs == NULL) in elf_x86_allocate_dynrelocs()
455 eh->dyn_relocs = NULL; in elf_x86_allocate_dynrelocs()
513 eh->dyn_relocs = NULL; in elf_x86_allocate_dynrelocs()
681 eh->elf.indx = -1; in _bfd_x86_elf_link_hash_newfunc()
682 eh->elf.dynindx = -1; in _bfd_x86_elf_link_hash_newfunc()
689 eh->elf.non_elf = 1; in _bfd_x86_elf_link_hash_newfunc()
1980 || (!eh->gotoff_ref in _bfd_x86_elf_adjust_dynamic_symbol()
2058 if (eh->local_ref > 1) in _bfd_x86_elf_link_symbol_references_local()
2061 if (eh->local_ref == 1) in _bfd_x86_elf_link_symbol_references_local()
2081 eh->local_ref = 2; in _bfd_x86_elf_link_symbol_references_local()
[all …]
/dragonfly/sys/net/bridge/
H A Dif_bridge.c668 eh->ether_dhost[0], in BRIDGE_DEBUG()
669 eh->ether_dhost[1], in BRIDGE_DEBUG()
670 eh->ether_dhost[2], in BRIDGE_DEBUG()
671 eh->ether_dhost[3], in BRIDGE_DEBUG()
672 eh->ether_dhost[4], in BRIDGE_DEBUG()
673 eh->ether_dhost[5], in BRIDGE_DEBUG()
674 eh->ether_shost[0], in BRIDGE_DEBUG()
675 eh->ether_shost[1], in BRIDGE_DEBUG()
676 eh->ether_shost[2], in BRIDGE_DEBUG()
680 eh->ether_type); in BRIDGE_DEBUG()
[all …]
/dragonfly/sys/net/ipfw3_basic/
H A Dip_fw3_basic.c194 if ((*args)->eh) { /* not valid on layer2 pkts */ in check_forward()
286 if ((*args)->eh == NULL || in check_from()
288 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_from()
333 if ((*args)->eh == NULL || in check_from_me()
335 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_from_me()
357 if ((*args)->eh == NULL || in check_from_mask()
379 if ((*args)->eh == NULL || in check_to()
426 if ((*args)->eh == NULL || in check_to_me()
450 if ((*args)->eh == NULL || in check_to_mask()
538 if ((*args)->eh == NULL || in check_src_n_port()
[all …]
/dragonfly/contrib/binutils-2.27/bfd/
H A Delf64-x86-64.c950 eh->needs_copy = 0; in elf_x86_64_link_hash_newfunc()
1447 eh->tls_get_addr = 0; in elf_x86_64_check_tls_transition()
2007 if (eh && eh->tls_get_addr == 1) in elf_x86_64_convert_load_reloc()
2362 if (eh != NULL) in elf_x86_64_check_relocs()
2456 if (eh != NULL) in elf_x86_64_check_relocs()
2468 if (eh != NULL) in elf_x86_64_check_relocs()
3033 eh); in elf_x86_64_allocate_dynrelocs()
3323 eh->dyn_relocs = NULL; in elf_x86_64_allocate_dynrelocs()
4466 eh)); in elf_x86_64_relocate_section()
4808 || eh->needs_copy in elf_x86_64_relocate_section()
[all …]
H A Delf32-i386.c927 eh->gotoff_ref = 0; in elf_i386_link_hash_newfunc()
1353 eh->tls_get_addr = 0; in elf_i386_check_tls_transition()
1712 if (eh && eh->tls_get_addr == 1) in elf_i386_convert_load_reloc()
2132 if (eh != NULL) in elf_i386_check_relocs()
2133 eh->has_got_reloc = 1; in elf_i386_check_relocs()
2140 if (eh != NULL) in elf_i386_check_relocs()
2562 && !eh->gotoff_ref in elf_i386_adjust_dynamic_symbol()
2630 eh); in elf_i386_allocate_dynrelocs()
2943 eh->dyn_relocs = NULL; in elf_i386_allocate_dynrelocs()
4117 eh)); in elf_i386_relocate_section()
[all …]

1234567