Home
last modified time | relevance | path

Searched refs:nhdr (Results 1 – 14 of 14) sorted by relevance

/freebsd/lib/libprocstat/
H A Dcore.c172 Elf_Note nhdr; in procstat_core_get() local
194 if (!core_read(core, &nhdr, sizeof(nhdr))) in procstat_core_get()
197 offset += sizeof(nhdr) + in procstat_core_get()
198 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_get()
199 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_get()
201 if (nhdr.n_namesz == 0 && nhdr.n_descsz == 0) in procstat_core_get()
203 if (nhdr.n_type != psc_type_info[type].n_type) in procstat_core_get()
205 if (nhdr.n_namesz != 8) in procstat_core_get()
211 if (nhdr.n_descsz < sizeof(cstructsize)) { in procstat_core_get()
221 len = nhdr.n_descsz - sizeof(cstructsize); in procstat_core_get()
[all …]
/freebsd/usr.sbin/fwcontrol/
H A Dfwdv.c258 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; in dvsend() local
336 nhdr = 0; in dvsend()
345 ciph = (struct ciphdr *)&hdr[nhdr][1]; in dvsend()
379 bcopy(hdr[nhdr], hdr[nhdr+1], sizeof(hdr[0])); in dvsend()
380 hdr[nhdr][0] = iso_empty; in dvsend()
381 wbuf[vec].iov_base = (char *)hdr[nhdr]; in dvsend()
383 nhdr ++; in dvsend()
386 hdr[nhdr][0] = iso_data; in dvsend()
387 wbuf[vec].iov_base = (char *)hdr[nhdr]; in dvsend()
391 nhdr ++; in dvsend()
/freebsd/contrib/elftoolchain/size/
H A Dsize.c260 #define NOTE_OFFSET_32(nhdr, namesz, offset) \ argument
261 ((char *)nhdr + sizeof(Elf32_Nhdr) + \
264 #define NOTE_OFFSET_64(nhdr, namesz, offset) \ argument
265 ((char *)nhdr + sizeof(Elf32_Nhdr) + \
268 #define PID32(nhdr, namesz, offset) \ argument
269 (pid_t)*((int *)((uintptr_t)NOTE_OFFSET_32(nhdr, \
272 #define PID64(nhdr, namesz, offset) \ argument
273 (pid_t)*((int *)((uintptr_t)NOTE_OFFSET_64(nhdr, \
300 Elf32_Nhdr *nhdr, nhdr_l; in handle_core_note() local
316 nhdr = (Elf32_Nhdr *)(uintptr_t)((char*)data + offset); in handle_core_note()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-ppi.c75 struct pcap_pkthdr nhdr; in ppi_if_print() local
114 nhdr = *h; in ppi_if_print()
115 nhdr.caplen = caplen; in ppi_if_print()
116 nhdr.len = length; in ppi_if_print()
117 printer(ndo, &nhdr, p); in ppi_if_print()
H A Dprint-pktap.c106 struct pcap_pkthdr nhdr; in pktap_if_print() local
153 nhdr = *h; in pktap_if_print()
154 nhdr.caplen = caplen; in pktap_if_print()
155 nhdr.len = length; in pktap_if_print()
156 printer(ndo, &nhdr, p); in pktap_if_print()
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_globals.cpp65 auto *nhdr = reinterpret_cast<const ElfW(Nhdr) *>(note); in HwasanGlobalsFor() local
67 const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); in HwasanGlobalsFor()
70 if (nhdr->n_type != NT_LLVM_HWASAN_GLOBALS || in HwasanGlobalsFor()
72 note = desc + RoundUpTo(nhdr->n_descsz, 4); in HwasanGlobalsFor()
/freebsd/sys/netinet/libalias/
H A Dalias_util.c110 int nhdr, ntcp, nbytes; in TcpChecksum() local
113 nhdr = pip->ip_hl << 2; in TcpChecksum()
114 ntcp = ntohs(pip->ip_len) - nhdr; in TcpChecksum()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_libcdep.cpp680 auto *nhdr = reinterpret_cast<const ElfW(Nhdr) *>(info->dlpi_addr + in AddModuleSegments() local
684 if (nhdr->n_type == NT_GNU_BUILD_ID && nhdr->n_namesz == kGnuNamesz) { in AddModuleSegments()
685 if (off + sizeof(ElfW(Nhdr)) + nhdr->n_namesz + nhdr->n_descsz > in AddModuleSegments()
692 reinterpret_cast<const char *>(nhdr) + sizeof(*nhdr); in AddModuleSegments()
694 const char *value = reinterpret_cast<const char *>(nhdr) + in AddModuleSegments()
695 sizeof(*nhdr) + kGnuNamesz; in AddModuleSegments()
696 cur_module.setUuid(value, nhdr->n_descsz); in AddModuleSegments()
700 off += sizeof(*nhdr) + RoundUpTo(nhdr->n_namesz, 4) + in AddModuleSegments()
701 RoundUpTo(nhdr->n_descsz, 4); in AddModuleSegments()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_peap.c863 struct eap_hdr *nhdr; in eap_peap_decrypt() local
870 nhdr = wpabuf_put(nmsg, sizeof(*nhdr)); in eap_peap_decrypt()
872 nhdr->code = req->code; in eap_peap_decrypt()
873 nhdr->identifier = req->identifier; in eap_peap_decrypt()
874 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_decrypt()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_peap.c1143 struct eap_hdr *nhdr; in eap_peap_process_phase2() local
1153 nhdr = wpabuf_put(nbuf, sizeof(*nhdr)); in eap_peap_process_phase2()
1154 nhdr->code = resp->code; in eap_peap_process_phase2()
1155 nhdr->identifier = resp->identifier; in eap_peap_process_phase2()
1156 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp968 auto *nhdr = reinterpret_cast<const Elf_Nhdr *>(data.data()); in readGnuProperty() local
970 data.size() < nhdr->getSize(sec.addralign)) in readGnuProperty()
973 Elf_Note note(*nhdr); in readGnuProperty()
974 if (nhdr->n_type != NT_GNU_PROPERTY_TYPE_0 || note.getName() != "GNU") { in readGnuProperty()
975 data = data.slice(nhdr->getSize(sec.addralign)); in readGnuProperty()
1021 data = data.slice(nhdr->getSize(sec.addralign)); in readGnuProperty()
/freebsd/sys/kern/
H A Dlink_elf.c838 link_elf_locate_exidx(linker_file_t lf, Elf_Shdr *shdr, int nhdr) in link_elf_locate_exidx() argument
842 for (i = 0; i < nhdr; i++) { in link_elf_locate_exidx()
862 uint32_t nhdr; in link_elf_locate_exidx_preload() local
868 nhdr = modinfo[-1] / sizeof(Elf_Shdr); in link_elf_locate_exidx_preload()
869 link_elf_locate_exidx(lf, shdr, nhdr); in link_elf_locate_exidx_preload()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Darc.c3314 arc_buf_hdr_t *nhdr; in arc_hdr_realloc() local
3320 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE); in arc_hdr_realloc()
3325 memcpy(nhdr, hdr, HDR_L2ONLY_SIZE); in arc_hdr_realloc()
3328 arc_hdr_set_flags(nhdr, ARC_FLAG_HAS_L1HDR); in arc_hdr_realloc()
3334 nhdr->b_l1hdr.b_state = arc_l2c_only; in arc_hdr_realloc()
3337 ASSERT3P(nhdr->b_l1hdr.b_pabd, ==, NULL); in arc_hdr_realloc()
3364 arc_hdr_clear_flags(nhdr, ARC_FLAG_HAS_L1HDR); in arc_hdr_realloc()
3370 (void) buf_hash_insert(nhdr, NULL); in arc_hdr_realloc()
3382 list_insert_after(&dev->l2ad_buflist, hdr, nhdr); in arc_hdr_realloc()
3398 arc_hdr_size(nhdr), nhdr); in arc_hdr_realloc()
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_nl80211.c5871 struct ndmsg nhdr = { in rtnl_neigh_delete_fdb_entry() local
5883 if (nlmsg_append(msg, &nhdr, sizeof(nhdr), NLMSG_ALIGNTO) < 0 || in rtnl_neigh_delete_fdb_entry()
12201 struct ndmsg nhdr = { in wpa_driver_br_add_ip_neigh() local
12225 nhdr.ndm_family = AF_INET; in wpa_driver_br_add_ip_neigh()
12228 nhdr.ndm_family = AF_INET6; in wpa_driver_br_add_ip_neigh()
12239 if (nlmsg_append(msg, &nhdr, sizeof(nhdr), NLMSG_ALIGNTO) < 0 || in wpa_driver_br_add_ip_neigh()
12265 struct ndmsg nhdr = { in wpa_driver_br_delete_ip_neigh() local
12277 nhdr.ndm_family = AF_INET; in wpa_driver_br_delete_ip_neigh()
12280 nhdr.ndm_family = AF_INET6; in wpa_driver_br_delete_ip_neigh()
12303 if (nlmsg_append(msg, &nhdr, sizeof(nhdr), NLMSG_ALIGNTO) < 0 || in wpa_driver_br_delete_ip_neigh()