/freebsd/contrib/openbsm/libbsm/ |
H A D | bsm_audit.c | 224 size_t hdrsize; in au_assemble() local 251 hdrsize = (aia.ai_termid.at_addr[0] == INADDR_ANY) ? in au_assemble() 256 hdrsize = in au_assemble() 263 tot_rec_size = rec->len + hdrsize + AUDIT_TRAILER_SIZE; in au_assemble() 268 if (hdrsize > AUDIT_HEADER_SIZE) in au_assemble()
|
/freebsd/sys/netipsec/ |
H A D | ipsec_mod.c | 64 .hdrsize = ipsec_hdrsiz_inpcb, 86 .hdrsize = ipsec_hdrsiz_inpcb,
|
H A D | ipsec_support.h | 86 size_t (*hdrsize)(struct inpcb *); member 169 (*(proto ## _ipsec_support)->methods->hdrsize)(inp)
|
H A D | subr_ipsec.c | 373 hdrsize, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp), in IPSEC_KMOD_METHOD()
|
/freebsd/contrib/libpcap/ |
H A D | sf-pcap.c | 209 size_t hdrsize; member 435 ps->hdrsize = sizeof(struct pcap_sf_patched_pkthdr); in pcap_check_header() 467 ps->hdrsize = sizeof(struct pcap_sf_pkthdr); in pcap_check_header() 533 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp); in pcap_next_packet() 534 if (amt_read != ps->hdrsize) { in pcap_next_packet() 543 ps->hdrsize, amt_read); in pcap_next_packet()
|
/freebsd/usr.bin/gcore/ |
H A D | elfcore.c | 182 size_t hdrsize, notesz, segoff; in elf_coredump() local 210 hdrsize = sizeof(Elf_Ehdr) + sizeof(Elf_Phdr) * (1 + seginfo.count); in elf_coredump() 212 hdrsize += sizeof(Elf_Shdr); in elf_coredump() 218 sbuf_end_section(sb, old_len, hdrsize, 0); in elf_coredump() 228 elf_puthdr(efd, pid, map, hdr, hdrsize, notesz, segoff, seginfo.count); in elf_coredump() 466 elf_puthdr(int efd, pid_t pid, struct map_entry *map, void *hdr, size_t hdrsize, in elf_puthdr() argument 538 phdr->p_offset = hdrsize; in elf_puthdr()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | sa.c | 561 int hdrsize; in sa_find_sizes() local 576 hdrsize = (SA_BONUSTYPE_FROM_DB(db) == DMU_OT_ZNODE) ? 0 : in sa_find_sizes() 598 tmp_hdrsize = hdrsize + ((is_var_sz && var_size_count > 1) ? in sa_find_sizes() 619 hdrsize = tmp_hdrsize; in sa_find_sizes() 639 if ((*total + P2ROUNDUP(hdrsize, 8)) > full_space && in sa_find_sizes() 645 hdrsize -= extra_hdrsize; in sa_find_sizes() 647 hdrsize = P2ROUNDUP(hdrsize, 8); in sa_find_sizes() 648 return (hdrsize); in sa_find_sizes() 671 int hdrsize; in sa_build_layouts() local 687 hdrsize = sa_find_sizes(sa, attr_desc, attr_count, hdl->sa_bonus, in sa_build_layouts() [all …]
|
H A D | zfs_quota.c | 90 int hdrsize = sa_hdrsize(&sa); in zpl_get_file_info() local 91 VERIFY3U(hdrsize, >=, sizeof (sa_hdr_phys_t)); in zpl_get_file_info() 93 uintptr_t data_after_hdr = (uintptr_t)data + hdrsize; in zpl_get_file_info()
|
H A D | zil.c | 2069 zil_max_log_data(zilog_t *zilog, size_t hdrsize) in zil_max_log_data() argument 2071 return (zilog->zl_max_block_size - sizeof (zil_chain_t) - hdrsize); in zil_max_log_data()
|
/freebsd/usr.bin/genl/ |
H A D | genl.c | 151 uint32_t hdrsize; member 176 .off = _OUT(hdrsize), 259 family->hdrsize, family->max_attr); in dump_family()
|
/freebsd/sys/kern/ |
H A D | imgact_elf.c | 1602 size_t hdrsize, notesz, coresize; in __elfN() local 1614 hdrsize = sizeof(Elf_Ehdr) + sizeof(Elf_Phdr) * (1 + seginfo.count); in __elfN() 1616 hdrsize += sizeof(Elf_Shdr); in __elfN() 1618 coresize = round_page(hdrsize + notesz) + seginfo.size; in __elfN() 1664 hdr = malloc(hdrsize, M_TEMP, M_WAITOK); in __elfN() 1665 error = __elfN(corehdr)(¶ms, seginfo.count, hdr, hdrsize, ¬elst, in __elfN() 1675 offset = round_page(hdrsize + notesz); in __elfN() 1827 size_t hdrsize, struct note_info_list *notelst, size_t notesz, in __elfN() 1835 bzero(hdr, hdrsize); in __elfN() 1836 __elfN(puthdr)(p->td, hdr, hdrsize, numsegs, notesz, flags); in __elfN() [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211_output.c | 83 u_int hdrsize, u_int ciphdrsize, u_int mtu); 1349 ieee80211_mbuf_adjust(struct ieee80211vap *vap, int hdrsize, in ieee80211_mbuf_adjust() argument 1353 int needed_space = vap->iv_ic->ic_headroom + hdrsize; in ieee80211_mbuf_adjust() 1485 int hdrsize, hdrspace, datalen, addqos, txfrag, is4addr, is_mcast; in ieee80211_encap() local 1570 hdrsize = sizeof(struct ieee80211_qosframe); in ieee80211_encap() 1572 hdrsize = sizeof(struct ieee80211_frame); in ieee80211_encap() 1594 hdrsize += IEEE80211_ADDR_LEN; in ieee80211_encap() 1637 hdrsize += IEEE80211_ADDR_LEN; in ieee80211_encap() 1646 hdrspace = roundup(hdrsize, sizeof(uint32_t)); in ieee80211_encap() 1648 hdrspace = hdrsize; in ieee80211_encap() [all …]
|
/freebsd/sys/netlink/ |
H A D | netlink_ctl.h | 94 uint16_t genl_register_family(const char *family_name, size_t hdrsize,
|
H A D | netlink_generic.c | 358 genl_register_family(const char *family_name, size_t hdrsize, in genl_register_family() argument 385 .family_hdrsize = hdrsize, in genl_register_family()
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.c | 100 int bpages, hdrsize, new_table, nsegs, save_errno; in __hash_open() local 137 hdrsize = _read(hashp->fp, &hashp->hdr, sizeof(HASHHDR)); in __hash_open() 141 if (hdrsize == -1) in __hash_open() 143 if (hdrsize != sizeof(HASHHDR)) in __hash_open()
|
/freebsd/sys/security/audit/ |
H A D | audit_bsm.c | 122 size_t hdrsize; in kau_close() local 127 hdrsize = 0; in kau_close() 130 hdrsize = (ak.ai_termid.at_addr[0] == INADDR_ANY) ? in kau_close() 135 hdrsize = (IN6_IS_ADDR_UNSPECIFIED(ap)) ? AUDIT_HEADER_SIZE : in kau_close() 141 tot_rec_size = rec->len + hdrsize + AUDIT_TRAILER_SIZE; in kau_close() 146 if (hdrsize != AUDIT_HEADER_SIZE) in kau_close()
|
/freebsd/stand/libsa/zfs/ |
H A D | zfsimpl.c | 3582 int hdrsize; in zfs_dnode_stat() local 3609 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_dnode_stat() 3610 sb->st_mode = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3612 sb->st_uid = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3614 sb->st_gid = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3616 sb->st_size = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3633 int hdrsize; in zfs_dnode_readlink() local 3657 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_dnode_readlink() 3658 p = (char *)((uintptr_t)sahdrp + hdrsize + SA_SYMLINK_OFFSET); in zfs_dnode_readlink()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zil.h | 636 extern uint64_t zil_max_log_data(zilog_t *zilog, size_t hdrsize);
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | os2 | 44 # int16 hdrsize; // total size of header
|
/freebsd/contrib/sendmail/src/ |
H A D | queue.c | 4026 long hdrsize = 0; local 4402 hdrsize += strlen(bp) - 3; 4679 e->e_msgsize = st.st_size + hdrsize;
|