/freebsd-current/usr.sbin/btxld/ |
H A D | btxld.c | 68 struct hdr { struct 115 static void gethdr(int, struct hdr *); 116 static void puthdr(int, struct hdr *); 198 struct hdr ihdr, ohdr; 320 gethdr(int fd, struct hdr *hdr) argument 329 memset(hdr, 0, sizeof(*hdr)); 334 hdr->size = sb.st_size; 335 if (!hdr 398 puthdr(int fd, struct hdr *hdr) argument [all...] |
/freebsd-current/sys/netpfil/pf/ |
H A D | if_pflog.c | 223 struct pfloghdr hdr; local 232 bzero(&hdr, sizeof(hdr)); 233 hdr.length = PFLOG_REAL_HDRLEN; 234 hdr.af = af; 235 hdr.action = action; 236 hdr.reason = reason; 237 memcpy(hdr.ifname, kif->pfik_name, sizeof(hdr.ifname)); 240 hdr [all...] |
/freebsd-current/contrib/wpa/src/drivers/ |
H A D | netlink.c | 173 struct nlmsghdr hdr; member in struct:__anon94 183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); 184 req.hdr.nlmsg_type = RTM_SETLINK; 185 req.hdr.nlmsg_flags = NLM_F_REQUEST; 186 req.hdr.nlmsg_seq = ++nl_seq; 187 req.hdr.nlmsg_pid = 0; 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 202 req.hdr.nlmsg_len += RTA_SPACE(sizeof(char)); 206 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 211 req.hdr [all...] |
/freebsd-current/crypto/openssl/test/ |
H A D | http_test.c | 39 const char *hdr = (char *)req; local 40 int is_get = count >= 4 && strncmp(hdr, "GET ", 4) == 0; 45 hdr += 4; 46 else if (TEST_true(count >= 5 && strncmp(hdr, "POST ", 5) == 0)) 47 hdr += 5; 51 path = hdr; 52 hdr = strchr(hdr, ' '); 53 if (hdr == NULL) 56 if (!TEST_strn_eq(++hdr, "HTT [all...] |
/freebsd-current/sys/kern/ |
H A D | kern_ctf.c | 47 Elf_Ehdr *hdr = NULL; local 111 hdr = malloc(sizeof(*hdr), M_LINKER, M_WAITOK); 114 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, hdr, sizeof(*hdr), 120 if (!IS_ELF(*hdr)) { 125 nbytes = hdr->e_shnum * hdr->e_shentsize; 126 if (nbytes == 0 || hdr->e_shoff == 0 || 127 hdr [all...] |
/freebsd-current/sbin/route/ |
H A D | route_netlink.c | 43 static void print_getmsg(struct nl_helper *h, struct nlmsghdr *hdr, 45 static void print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr, 177 struct nlmsghdr *hdr = snl_create_msg_request(&nw, nl_type); local 178 hdr->nlmsg_flags |= nl_flags; 269 if ((hdr = snl_finalize_msg(&nw)) && snl_send_message(ss, hdr)) { 272 hdr = snl_read_reply(ss, hdr->nlmsg_seq); 274 if (hdr->nlmsg_type == NL_RTM_NEWROUTE) { 275 print_getmsg(h, hdr, ds 318 struct nlmsghdr *hdr = snl_create_msg_request(&nw, NL_RTM_GETLINK); local 343 print_getmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct sockaddr *dst) argument 446 print_line_prefix(struct nlmsghdr *hdr, struct snl_msg_info *cinfo, const char *cmd, const char *name) argument 464 get_action_name(struct nlmsghdr *hdr, int new_cmd) argument 510 print_nlmsg_route(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo) argument 577 print_nlmsg_link(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo) argument 601 print_nlmsg_addr(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo) argument 651 print_nlmsg_neigh(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo) argument 710 print_nlmsg_generic(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo) argument 718 print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo) argument 782 struct nlmsghdr *hdr; local 817 struct nlmsghdr *hdr = snl_create_msg_request(&nw, NL_RTM_DELROUTE); local 866 struct nlmsghdr *hdr = snl_create_msg_request(&nw, NL_RTM_GETROUTE); local [all...] |
/freebsd-current/stand/common/ |
H A D | part.c | 147 gpt_checkhdr(struct gpt_hdr *hdr, uint64_t lba_self, uint64_t lba_last, argument 152 if (memcmp(hdr->hdr_sig, GPT_HDR_SIG, sizeof(hdr->hdr_sig)) != 0) { 156 sz = le32toh(hdr->hdr_size); 161 crc = le32toh(hdr->hdr_crc_self); 162 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); 163 if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, sz) != crc) { 167 hdr->hdr_crc_self = crc; 168 hdr 200 gpt_checktbl(const struct gpt_hdr *hdr, uint8_t *tbl, size_t size, uint64_t lba_last) argument 231 struct gpt_hdr *phdr, hdr; local [all...] |
/freebsd-current/sys/geom/raid/ |
H A D | md_ddf.c | 62 struct ddf_header *hdr; member in struct:ddf_meta 74 struct ddf_header *hdr; member in struct:ddf_vol_meta 179 #define GETCRNUM(m) (GET32((m), hdr->cr_length) / \ 180 GET16((m), hdr->Configuration_Record_Length)) 183 (n) * GET16((m), hdr->Configuration_Record_Length) * \ 187 (n) * GET16((m), hdr->Configuration_Record_Length) * \ 237 print_guid(meta->hdr->DDF_Header_GUID); 239 printf("DDF_rev %8.8s\n", (char *)&meta->hdr->DDF_rev[0]); 240 printf("Sequence_Number 0x%08x\n", GET32(meta, hdr->Sequence_Number)); 241 printf("TimeStamp 0x%08x\n", GET32(meta, hdr 1038 struct ddf_header *ahdr, *hdr; local [all...] |
/freebsd-current/usr.sbin/valectl/ |
H A D | valectl.c | 179 list_all(int fd, struct nmreq_header *hdr) argument 183 (struct nmreq_vale_list *)(uintptr_t)hdr->nr_body; 186 hdr->nr_name[0] = '\0'; 187 error = ioctl(fd, NIOCCTRL, hdr); 195 printf("%s bridge_idx %"PRIu16" port_idx %"PRIu32"\n", hdr->nr_name, 205 struct nmreq_header hdr; local 223 bzero(&hdr, sizeof(hdr)); 224 hdr.nr_version = NETMAP_API; 226 strncpy(hdr [all...] |
/freebsd-current/sys/netlink/ |
H A D | netlink_generic.c | 50 static int dump_family(struct nlmsghdr *hdr, struct genlmsghdr *ghdr, 57 genl_handle_message(struct nlmsghdr *hdr, struct nl_pstate *npt) argument 63 int family_id = (int)hdr->nlmsg_type - GENL_MIN_ID; 66 NLP_LOG(LOG_DEBUG, nlp, "invalid message type: %d", hdr->nlmsg_type); 70 if (__predict_false(hdr->nlmsg_len < sizeof(hdr) + GENL_HDRLEN)) { 71 NLP_LOG(LOG_DEBUG, nlp, "invalid message size: %d", hdr->nlmsg_len); 75 struct genlmsghdr *ghdr = (struct genlmsghdr *)(hdr + 1); 92 gf->family_name, cmd->cmd_name, ghdr->cmd, hdr->nlmsg_len); 94 error = cmd->cmd_cb(hdr, np 109 dump_family(struct nlmsghdr *hdr, struct genlmsghdr *ghdr, const struct genl_family *gf, struct nl_writer *nw) argument 211 nlctrl_handle_getfamily(struct nlmsghdr *hdr, struct nl_pstate *npt) argument 257 struct nlmsghdr hdr = {.nlmsg_type = NETLINK_GENERIC }; local [all...] |
H A D | netlink_linux.h | 41 typedef int msg_from_linux_cb_t(int netlink_family, struct nlmsghdr **hdr,
|
/freebsd-current/usr.bin/mkimg/ |
H A D | vmdk.c | 108 struct vmdk_header hdr; local 120 memset(&hdr, 0, sizeof(hdr)); 121 le32enc(&hdr.magic, VMDK_MAGIC); 122 le32enc(&hdr.version, VMDK_VERSION); 123 le32enc(&hdr.flags, VMDK_FLAGS_NL_TEST | VMDK_FLAGS_RGT_USED); 124 le64enc(&hdr.capacity, imagesz); 125 le64enc(&hdr.grain_size, grainsz); 137 le64enc(&hdr.desc_offset, 1); 138 le64enc(&hdr [all...] |
H A D | qcow.c | 130 struct qcow_header *hdr; local 174 hdr = calloc(1, clstrsz); 175 if (hdr == NULL) 178 be32enc(&hdr->magic, QCOW_MAGIC); 179 be32enc(&hdr->version, version); 180 be64enc(&hdr->disk_size, imagesz); 185 hdr->u.v1.clstr_log2sz = clstr_log2sz; 186 hdr->u.v1.l2_log2sz = clstr_log2sz - 3; 187 be64enc(&hdr->u.v1.l1_offset, clstrsz * l1clno); 193 be32enc(&hdr [all...] |
H A D | gpt.c | 216 gpt_write_hdr(struct gpt_hdr *hdr, uint64_t self, uint64_t alt, uint64_t tbl) argument 220 le64enc(&hdr->hdr_lba_self, self); 221 le64enc(&hdr->hdr_lba_alt, alt); 222 le64enc(&hdr->hdr_lba_table, tbl); 223 hdr->hdr_crc_self = 0; 224 crc = crc32(hdr, offsetof(struct gpt_hdr, padding)); 225 le64enc(&hdr->hdr_crc_self, crc); 226 return (image_write(self, hdr, 1)); 234 struct gpt_hdr *hdr; local 257 hdr [all...] |
/freebsd-current/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_mbox_prop.h | 77 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_power_state 92 struct bcm2835_mbox_hdr hdr; member in struct:msg_set_power_state 113 struct bcm2835_mbox_hdr hdr; member in struct:msg_notify_xhci_reset 134 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_clock_rate 157 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_turbo 172 struct bcm2835_mbox_hdr hdr; member in struct:msg_set_turbo 198 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_voltage 213 struct bcm2835_mbox_hdr hdr; member in struct:msg_set_voltage 229 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_max_voltage 244 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_min_voltage 262 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_temperature 277 struct bcm2835_mbox_hdr hdr; member in struct:msg_get_max_temperature 404 struct bcm2835_mbox_hdr hdr; member in struct:bcm2835_mbox_tag_touchbuf 430 struct bcm2835_mbox_hdr hdr; member in struct:msg_fb_get_w_h 438 struct bcm2835_mbox_hdr hdr; member in struct:msg_fb_get_bpp 446 struct bcm2835_mbox_hdr hdr; member in struct:msg_fb_setup [all...] |
/freebsd-current/sys/dev/acpica/Osd/ |
H A D | OsdTable.c | 70 ACPI_TABLE_HEADER *hdr; local 87 hdr = preload_fetch_addr(acpi_table); 89 if (hdr == NULL || sz == 0) 95 *NewTable = hdr;
|
/freebsd-current/sys/dev/hyperv/utilities/ |
H A D | vmbus_shutdown.c | 82 struct vmbus_icmsg_hdr *hdr; local 98 if (dlen < sizeof(*hdr)) { 102 hdr = data; 107 switch (hdr->ic_type) { 126 hdr->ic_status = VMBUS_ICMSG_STATUS_OK; 131 hdr->ic_status = VMBUS_ICMSG_STATUS_FAIL; 136 device_printf(sc->ic_dev, "got 0x%08x icmsg\n", hdr->ic_type);
|
/freebsd-current/sys/dev/usb/net/ |
H A D | if_cdceem.c | 318 cdceem_handle_cmd(struct usb_xfer *xfer, uint16_t hdr, int *offp) argument 330 if (hdr & CDCEEM_CMD_RESERVED) { 332 "with Reserved bit set; ignoring", hdr); 336 switch (hdr & CDCEEM_CMD_MASK) { 338 pktlen = hdr & CDCEEM_ECHO_LEN_MASK; 362 pktlen = hdr & CDCEEM_ECHO_LEN_MASK; 411 (hdr & CDCEEM_CMD_MASK >> 11), hdr); 419 cdceem_handle_data(struct usb_xfer *xfer, uint16_t hdr, int *offp) argument 438 pktlen = hdr 508 uint16_t hdr; local 571 uint16_t hdr; local 610 uint16_t hdr; local 651 uint16_t hdr; local [all...] |
/freebsd-current/contrib/wpa/src/tls/ |
H A D | rsa.c | 34 struct asn1_hdr hdr; local 39 if (asn1_get_next(pos, end - pos, &hdr) < 0 || 40 !asn1_is_integer(&hdr)) { 41 asn1_unexpected(&hdr, "RSA: Expected INTEGER"); 45 if (bignum_set_unsigned_bin(num, hdr.payload, hdr.length) < 0) { 50 return hdr.payload + hdr.length; 64 struct asn1_hdr hdr; local 86 if (asn1_get_next(buf, len, &hdr) < 148 struct asn1_hdr hdr; local [all...] |
/freebsd-current/tools/tools/ath/athalq/ |
H A D | ar5212_ds.c | 47 (unsigned int) be32toh(a->hdr.tstamp_sec), 48 (unsigned int) be32toh(a->hdr.tstamp_usec), 49 (unsigned long long) be64toh(a->hdr.threadid), 88 (unsigned int) be32toh(a->hdr.tstamp_sec), 89 (unsigned int) be32toh(a->hdr.tstamp_usec), 90 (unsigned long long) be64toh(a->hdr.threadid)); 153 (unsigned int) be32toh(a->hdr.tstamp_sec), 154 (unsigned int) be32toh(a->hdr.tstamp_usec), 155 (unsigned long long) be64toh(a->hdr.threadid), 207 switch (be16toh(a->hdr [all...] |
/freebsd-current/lib/libifconfig/ |
H A D | libifconfig_carp.c | 74 struct nlmsghdr *hdr; local 96 hdr = snl_create_genl_msg_request(&nw, family_id, CARP_NL_CMD_GET); 97 hdr->nlmsg_flags |= NLM_F_DUMP; 104 hdr = snl_finalize_msg(&nw); 105 if (hdr == NULL) { 109 seq_id = hdr->nlmsg_seq; 110 if (! snl_send_message(&ss, hdr)) { 115 while ((hdr = snl_read_reply_multi(&ss, seq_id, &e)) != NULL) { 127 if (! snl_parse_nlmsg(&ss, hdr, &carp_get_parser, &carp[i])) 151 struct nlmsghdr *hdr; local [all...] |
/freebsd-current/sys/dev/e1000/ |
H A D | e1000_manage.c | 133 struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie; local 164 hdr_csum = hdr->checksum; 165 hdr->checksum = 0; 166 csum = e1000_calculate_checksum((u8 *)hdr, 172 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { 178 if (!(hdr->status & E1000_MNG_DHCP_COOKIE_STATUS_PARSING)) 187 * @hdr: pointer to the host interface command header 192 struct e1000_host_mng_command_header *hdr) 200 hdr->checksum = e1000_calculate_checksum((u8 *)hdr, lengt 191 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw, struct e1000_host_mng_command_header *hdr) argument 300 struct e1000_host_mng_command_header hdr; local [all...] |
/freebsd-current/usr.bin/genl/ |
H A D | genl.c | 46 static void parser_nlctrl_notify(struct snl_state *ss, struct nlmsghdr *hdr); 47 static void parser_fallback(struct snl_state *ss, struct nlmsghdr *hdr); 60 void (*parser)(struct snl_state *ss, struct nlmsghdr *hdr); 177 parser_nlctrl_notify(struct snl_state *ss, struct nlmsghdr *hdr) argument 181 if (snl_parse_nlmsg(ss, hdr, &genl_family_parser, 187 parser_fallback(struct snl_state *ss __unused, struct nlmsghdr *hdr __unused) 196 struct nlmsghdr *hdr; local 200 void (*parser)(struct snl_state *ss, struct nlmsghdr *hdr); 246 hdr = snl_read_message(&ss); 247 if (hdr ! 260 struct nlmsghdr *hdr; local [all...] |
/freebsd-current/usr.sbin/ndp/ |
H A D | ndp_netlink.c | 75 struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETLINK); local 79 if (! (hdr = snl_finalize_msg(&nw)) || !snl_send_message(ss, hdr)) 82 hdr = snl_read_reply(ss, hdr->nlmsg_seq); 84 if (hdr == NULL || hdr->nlmsg_type != RTM_NEWLINK) 87 if (!snl_parse_nlmsg(ss, hdr, &snl_rtm_link_parser_simple, link)) 148 struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETROUTE); local 155 if (! (hdr 323 struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETNEIGH); local 418 struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_DELNEIGH); local 482 struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_NEWNEIGH); local [all...] |
/freebsd-current/contrib/ofed/librdmacm/ |
H A D | acm.c | 101 struct acm_hdr hdr; member in struct:acm_resolve_msg 106 struct acm_hdr hdr; member in struct:acm_msg 214 struct ib_connect_hdr *hdr; local 219 hdr = calloc(1, sizeof(*hdr)); 220 if (!hdr) 224 hdr->ip_version = 4 << 4; 225 memcpy(&hdr->cma_src_ip4, 227 memcpy(&hdr->cma_dst_ip4, 230 hdr [all...] |