/freebsd-11-stable/sys/sys/ |
H A D | imgact_elf.h | 61 Elf_Note hdr; member in struct:__anon5508
|
/freebsd-11-stable/sys/dev/usb/ |
H A D | usb_bus.h | 38 struct usb_proc_msg hdr; member in struct:usb_bus_msg
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-pfsync.c | 88 struct pfsync_header *hdr = (struct pfsync_header *)bp; local 93 pfsync_print(ndo, hdr, bp + sizeof(struct pfsync_header), 133 pfsync_print(netdissect_options *ndo, struct pfsync_header *hdr, argument 140 plen = ntohs(hdr->len); 142 ND_PRINT((ndo, "PFSYNCv%d len %d", hdr->version, plen)); 144 if (hdr->version != PFSYNC_VERSION) 147 plen -= sizeof(*hdr);
|
/freebsd-11-stable/sys/dev/iicbus/ |
H A D | if_ic.c | 363 u_int32_t hdr; local 367 bcopy(dst->sa_data, &hdr, sizeof(hdr)); 369 hdr = dst->sa_family; 381 bcopy ((char *)&hdr, sc->ic_obuf, ICHDRLEN); 399 BPF_MTAP2(ifp, &hdr, sizeof(hdr), m);
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | dispatch.c | 523 struct imsg_hdr hdr; local 527 hdr.code = IMSG_SET_INTERFACE_MTU; 528 hdr.len = sizeof(hdr) + 531 if ((buf = buf_open(hdr.len)) == NULL) 534 errs += buf_add(buf, &hdr, sizeof(hdr));
|
/freebsd-11-stable/contrib/wpa/src/eap_peer/ |
H A D | eap_teap.c | 377 struct eap_hdr *hdr, 380 size_t len = be_to_host16(hdr->length); 392 pos = (u8 *) (hdr + 1); 395 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); 415 hdr, resp)) 431 wpabuf_set(&msg, hdr, len); 453 data->pending_phase2_req = wpabuf_alloc_copy(hdr, len); 508 struct eap_hdr *hdr; local 511 if (eap_payload_tlv_len < sizeof(*hdr)) { 518 hdr 374 eap_teap_phase2_request(struct eap_sm *sm, struct eap_teap_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument 906 struct pac_attr_hdr *hdr; local 1025 struct pac_attr_hdr *hdr; local [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_server/ |
H A D | eap_server.c | 791 const u8 *pos, *end, *start, *tlvs, *hdr; local 814 hdr = wpabuf_head(sm->eap_if.eapRespData); 920 if (hmac_sha256(erp->rIK, erp->rIK_len, hdr, 921 end - hdr - hash_len, hash) < 0) 933 if (hmac_sha256(erp->rIK, erp->rIK_len, hdr, 934 end - hdr - 32, hash) < 0) 945 if (hmac_sha256(erp->rIK, erp->rIK_len, hdr, 946 end - hdr - 16, hash) < 0) 1472 const struct eap_hdr *hdr; local 1483 if (resp == NULL || wpabuf_len(resp) < sizeof(*hdr)) { 1532 const struct eap_hdr *hdr; local 2035 const struct eap_hdr *hdr; local [all...] |
/freebsd-11-stable/sys/dev/ocs_fc/ |
H A D | ocs_hw_queues.c | 327 rqs[i]->base_mrq_id = rqs[0]->hdr->id; 604 rq->hdr = &hw->rq[hw->rq_count]; 607 if (sli_fc_rq_alloc(&hw->sli, rq->hdr, 618 ocs_log_debug(hw->os, "create rq[%2d] id %3d len %4d hdr size %4d ulp %d\n", 619 rq->instance, rq->hdr->id, rq->entry_count, rq->hdr_entry_size, rq->ulp); 696 rq->hdr = &hw->rq[hw->rq_count]; 700 qs[q_count] = rq->hdr; 913 ocs_printf(" rq[%d] hdr id %2d\n", rq->instance, rq->hdr->id); 1767 fc_header_t *hdr local 1903 fc_header_t *hdr = seq->header->dma.virt; local 1926 fc_header_t *hdr = seq->header->dma.virt; local 2020 fc_header_t *hdr = seq->header->dma.virt; local [all...] |
/freebsd-11-stable/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_freebsd.c | 79 struct pcap_pkthdr hdr; local 85 packet = pcap_next(pcap, &hdr); 87 if (packet == NULL || hdr.caplen < sizeof(*ethhdr)) 93 len = hdr.caplen; 96 len = hdr.caplen - sizeof(*ethhdr);
|
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_crypto_tkip.c | 775 michael_mic_hdr(const struct ieee80211_frame *wh0, uint8_t hdr[16]) argument 782 IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */ 783 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2); 786 IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */ 787 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2); 790 IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */ 791 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr3); 794 IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */ 795 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr4); 802 hdr[1 813 uint8_t hdr[16]; local 818 michael_mic_hdr(mtod(m, struct ieee80211_frame *), hdr); local [all...] |
/freebsd-11-stable/sys/dev/usb/serial/ |
H A D | usb_serial.c | 202 struct unrhdr *hdr; local 203 hdr = ucom_unrhdr; 208 if (hdr != NULL) 209 delete_unrhdr(hdr); 558 task->hdr.pm_callback = fn; 579 sc->sc_last_start_xfer = &task->hdr; 728 &sc->sc_open_task[0].hdr, 729 &sc->sc_open_task[1].hdr); 733 &sc->sc_start_task[0].hdr, 734 &sc->sc_start_task[1].hdr); [all...] |
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | socket_wrapper.c | 683 } hdr; member in struct:swrap_packet::__anon6056 746 if (sizeof(p.ip.hdr) != SWRAP_PACKET__IP_HDR_SIZE) { 797 wire_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.tcp); 803 wire_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.udp); 814 icmp_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.icmp); 834 packet->ip.hdr.ver_hdrlen = 0x45; /* version 4 and 5 * 32 bit words */ 835 packet->ip.hdr.tos = 0x00; 836 packet->ip.hdr.packet_length = htons(wire_len - icmp_truncate_len); 837 packet->ip.hdr.identification = htons(0xFFFF); 838 packet->ip.hdr [all...] |
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | srec.c | 450 char hdr[3]; local 459 if (bfd_bread (hdr, (bfd_size_type) 3, abfd) != 3) 462 if (! ISHEX (hdr[1]) || ! ISHEX (hdr[2])) 464 if (! ISHEX (hdr[1])) 465 c = hdr[1]; 467 c = hdr[2]; 472 bytes = HEX (hdr + 1); 491 switch (hdr[0]) 675 bfd_byte hdr[ local [all...] |
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_uath.c | 669 struct uath_cmd_hdr *hdr; local 686 hdr = (struct uath_cmd_hdr *)cmd->buf; 687 memset(hdr, 0, sizeof(struct uath_cmd_hdr)); 688 hdr->len = htobe32(cmd->buflen); 689 hdr->code = htobe32(code); 690 hdr->msgid = cmd->msgid; /* don't care about endianness */ 691 hdr->magic = htobe32((cmd->flags & UATH_CMD_FLAG_MAGIC) ? 1 << 24 : 0); 692 memcpy((uint8_t *)(hdr + 1), idata, ilen); 704 olen < UATH_MAX_CMDSZ - sizeof(*hdr) + sizeof(uint32_t), 2203 struct uath_cmd_hdr *hdr; local [all...] |
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_pppoe.c | 948 neg->host_uniq.hdr.tag_type = PTT_HOST_UNIQ; 951 neg->host_uniq.hdr.tag_len = htons(sizeof(sp)); 960 neg->host_uniq.hdr.tag_len = htons((uint16_t)(hulen / 2 - 1)); 976 neg->host_uniq.hdr.tag_len = htons((uint16_t)hulen); 981 neg->service.hdr.tag_type = PTT_SRV_NAME; 982 neg->service.hdr.tag_len = htons((uint16_t)srvlen); 996 neg->service.hdr.tag_type = PTT_SRV_NAME; 997 neg->service.hdr.tag_len = 1018 neg->ac_name.hdr.tag_type = PTT_AC_NAME; 1019 neg->ac_name.hdr 1452 struct pppoe_tag hdr; member in struct:__anon8169 [all...] |
/freebsd-11-stable/sys/dev/mfi/ |
H A D | mfi_tbolt.c | 1091 struct mfi_frame_header *hdr; local 1096 hdr = &cm->cm_frame->header; 1104 hdr->cmd_status = MFI_STAT_INVALID_STATUS; 1105 hdr->flags |= MFI_FRAME_DONT_POST_IN_REPLY_QUEUE; 1108 if (hdr->cmd == MFI_CMD_PD_SCSI_IO) { 1120 } else if (hdr->cmd == MFI_CMD_LD_SCSI_IO || 1121 hdr->cmd == MFI_CMD_LD_READ || hdr->cmd == MFI_CMD_LD_WRITE) { 1138 hdr->flags &= ~MFI_FRAME_DONT_POST_IN_REPLY_QUEUE; 1150 * The value of hdr 1367 struct mfi_frame_header *hdr; local 1454 struct mfi_frame_header *hdr; local [all...] |
/freebsd-11-stable/sys/contrib/ngatm/netnatm/sig/ |
H A D | sig_reset.c | 251 uni_respond_status_mtype(uni, &u->u.hdr.cref, uni->glob_start, 297 switch (uni_verify(uni, u->u.hdr.act)) { 300 uni_respond_status_verify(uni, &u->u.hdr.cref, 313 uni_respond_status_verify(uni, &u->u.hdr.cref, 371 switch (uni_verify(uni, u->u.hdr.act)) { 381 uni_respond_status_verify(uni, &u->u.hdr.cref, uni->glob_start, 410 resp->cref = u->u.hdr.cref; 558 switch (uni_verify(uni, u->u.hdr.act)) { 561 uni_respond_status_verify(uni, &u->u.hdr.cref, 569 uni_respond_status_verify(uni, &u->u.hdr [all...] |
/freebsd-11-stable/sys/dev/firewire/ |
H A D | fwdev.c | 288 fp = &xfer->recv.hdr; 293 tinfo = &xfer->fc->tcode[fp->mode.hdr.tcode]; 401 tinfo = &d->fc->tcode[pkt.mode.hdr.tcode]; 410 bcopy(&pkt, &xfer->send.hdr, sizeof(struct fw_pkt)); 646 tinfo = &fc->tcode[fp->mode.hdr.tcode]; 667 fp->mode.hdr.dst = FWLOCALBUS | fwdev->dst; 677 bcopy(fp, (void *)&xfer->send.hdr, tinfo->hdr_len); 696 tinfo = &fc->tcode[xfer->recv.hdr.mode.hdr.tcode]; 697 if (xfer->recv.hdr [all...] |
H A D | fwmem.c | 103 xfer->send.hdr.mode.hdr.dst = FWLOCALBUS | fwdev->dst; 134 fp = &xfer->send.hdr; 170 fp = &xfer->send.hdr; 207 fp = &xfer->send.hdr; 245 fp = &xfer->send.hdr;
|
/freebsd-11-stable/sys/dev/virtio/network/ |
H A D | if_vtnet.c | 1481 uint16_t eth_type, int ip_start, struct virtio_net_hdr *hdr) 1485 int offset = hdr->csum_start + hdr->csum_offset; 1515 switch (hdr->csum_offset) { 1531 uint16_t eth_type, int ip_start, struct virtio_net_hdr *hdr) 1587 hdr->csum_start, hdr->csum_offset); 1607 struct virtio_net_hdr *hdr) 1624 if (hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) 1625 error = vtnet_rxq_csum_by_offset(rxq, m, eth_type, offset, hdr); 1480 vtnet_rxq_csum_by_offset(struct vtnet_rxq *rxq, struct mbuf *m, uint16_t eth_type, int ip_start, struct virtio_net_hdr *hdr) argument 1530 vtnet_rxq_csum_by_parse(struct vtnet_rxq *rxq, struct mbuf *m, uint16_t eth_type, int ip_start, struct virtio_net_hdr *hdr) argument 1606 vtnet_rxq_csum(struct vtnet_rxq *rxq, struct mbuf *m, struct virtio_net_hdr *hdr) argument 1707 vtnet_rxq_input(struct vtnet_rxq *rxq, struct mbuf *m, struct virtio_net_hdr *hdr) argument 1757 struct virtio_net_hdr lhdr, *hdr; local 2051 vtnet_txq_offload_tso(struct vtnet_txq *txq, struct mbuf *m, int eth_type, int offset, struct virtio_net_hdr *hdr) argument 2093 vtnet_txq_offload(struct vtnet_txq *txq, struct mbuf *m, struct virtio_net_hdr *hdr) argument 2192 struct virtio_net_hdr *hdr; local 3167 struct virtio_net_ctrl_hdr hdr; member in struct:__anon5291 3199 struct virtio_net_ctrl_hdr hdr; member in struct:__anon5292 3395 struct virtio_net_ctrl_hdr hdr; member in struct:__anon5293 [all...] |
/freebsd-11-stable/sys/netgraph/bluetooth/socket/ |
H A D | ng_btsocket_l2cap.c | 1414 ng_l2cap_hdr_t *hdr = NULL; local 1438 if (m->m_pkthdr.len < sizeof(*hdr)) { 1444 if (m->m_len < sizeof(*hdr)) { 1445 m = m_pullup(m, sizeof(*hdr)); 1451 hdr = mtod(m, ng_l2cap_hdr_t *); 1452 m_adj(m, sizeof(*hdr)); 1454 if (hdr->length != m->m_pkthdr.len) { 1457 __func__, m->m_pkthdr.len, hdr->length); 1478 hdr->dcid, hdr 2657 ng_l2cap_l2ca_hdr_t *hdr = NULL; local [all...] |
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_all.c | 5727 scsi_transportid_sbuf(struct sbuf *sb, struct scsi_transportid_header *hdr, argument 5730 switch (hdr->format_protocol & SCSI_TRN_PROTO_MASK) { 5735 fcp = (struct scsi_transportid_fcp *)hdr; 5745 spi = (struct scsi_transportid_spi *)hdr; 5762 sbp = (struct scsi_transportid_1394 *)hdr; 5772 rdma = (struct scsi_transportid_rdma *)hdr; 5785 if ((hdr->format_protocol & SCSI_TRN_FORMAT_MASK) == 5789 dev = (struct scsi_transportid_iscsi_device *)hdr; 5800 } else if ((hdr->format_protocol & SCSI_TRN_FORMAT_MASK) == 5804 port = (struct scsi_transportid_iscsi_port *)hdr; 5979 scsi_parse_transportid_64bit(int proto_id, char *id_str, struct scsi_transportid_header **hdr, unsigned int *alloc_len, struct malloc_type *type, int flags, char *error_str, int error_str_len) argument 6081 scsi_parse_transportid_spi(char *id_str, struct scsi_transportid_header **hdr, unsigned int *alloc_len, struct malloc_type *type, int flags, char *error_str, int error_str_len) argument 6165 scsi_parse_transportid_rdma(char *id_str, struct scsi_transportid_header **hdr, unsigned int *alloc_len, struct malloc_type *type, int flags, char *error_str, int error_str_len) argument 6316 scsi_parse_transportid_iscsi(char *id_str, struct scsi_transportid_header **hdr, unsigned int *alloc_len, struct malloc_type *type, int flags, char *error_str, int error_str_len) argument 6427 scsi_parse_transportid_sop(char *id_str, struct scsi_transportid_header **hdr, unsigned int *alloc_len, struct malloc_type *type, int flags, char *error_str, int error_str_len) argument 6596 scsi_parse_transportid(char *transportid_str, struct scsi_transportid_header **hdr, unsigned int *alloc_len, struct malloc_type *type, int flags, char *error_str, int error_str_len) argument 6947 scsi_attrib_volcoh_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, uint32_t flags, uint32_t output_flags, char *error_str, int error_str_len) argument 7057 scsi_attrib_vendser_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, uint32_t flags, uint32_t output_flags, char *error_str, int error_str_len) argument 7117 scsi_attrib_hexdump_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, uint32_t flags, uint32_t output_flags, char *error_str, int error_str_len) argument 7142 scsi_attrib_int_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, uint32_t flags, uint32_t output_flags, char *error_str, int error_str_len) argument 7227 scsi_attrib_ascii_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, uint32_t flags, uint32_t output_flags, char *error_str, int error_str_len) argument 7281 scsi_attrib_text_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, uint32_t flags, uint32_t output_flags, char *error_str, int error_str_len) argument 7351 scsi_attrib_value_sbuf(struct sbuf *sb, uint32_t valid_len, struct scsi_mam_attribute_header *hdr, uint32_t output_flags, char *error_str, size_t error_str_len) argument 7395 scsi_attrib_prefix_sbuf(struct sbuf *sb, uint32_t output_flags, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, const char *desc) argument 7448 scsi_attrib_sbuf(struct sbuf *sb, struct scsi_mam_attribute_header *hdr, uint32_t valid_len, struct scsi_attrib_table_entry *user_table, size_t num_user_entries, int prefer_user_table, uint32_t output_flags, char *error_str, int error_str_len) argument [all...] |
/freebsd-11-stable/sys/amd64/vmm/intel/ |
H A D | vtd.c | 248 ACPI_DMAR_HEADER *hdr; local 278 hdr = (ACPI_DMAR_HEADER *)(end - remaining); 279 if (hdr->Length > remaining) 288 if (hdr->Type != ACPI_DMAR_TYPE_HARDWARE_UNIT) 291 drhd = (ACPI_DMAR_HARDWARE_UNIT *)hdr; 295 remaining -= hdr->Length;
|
/freebsd-11-stable/sys/dev/mrsas/ |
H A D | mrsas_ioctl.c | 103 user_ioc->frame.hdr.cmd_status = MFI_STAT_OK; 125 cmd->frame->hdr.context = cmd->index; 126 cmd->frame->hdr.pad_0 = 0; 127 cmd->frame->hdr.flags &= ~(MFI_FRAME_IEEE | MFI_FRAME_SGL64 | 305 memcpy(&user_ioc->frame.hdr.cmd_status, &cmd->frame->hdr.cmd_status,
|
/freebsd-11-stable/usr.sbin/mptutil/ |
H A D | mpt_cmd.c | 472 CONFIG_PAGE_HEADER *hdr; local 479 hdr = buf; 480 req.len = hdr->PageLength * 4; 578 hexdump(const void *ptr, int length, const char *hdr, int flags) argument 597 if (hdr != NULL) 598 printf("%s", hdr);
|