hci_cmd_hdr_t
hci_cmd_hdr_t hdr;
if (sizeof(hci_cmd_hdr_t) > (size_t)n
|| sizeof(hci_cmd_hdr_t) + p[3] != (size_t)n)
hci_cmd_hdr_t *cmd;
hci_cmd_hdr_t *p;
p = mtod(m, hci_cmd_hdr_t *);
m->m_pkthdr.len = m->m_len = sizeof(hci_cmd_hdr_t);
m_copyback(m, sizeof(hci_cmd_hdr_t), p->length, ¶m);
hci_cmd_hdr_t *p;
p = mtod(m, hci_cmd_hdr_t *);
typedef hci_cmd_hdr_t hci_loopback_command_ep;
#define HCI_CMD_PKT_SIZE (sizeof(hci_cmd_hdr_t) + 0xff)
hci_cmd_hdr_t *hdr = (hci_cmd_hdr_t *)arg1;
hci_cmd_hdr_t hdr;
KASSERT(m->m_len >= sizeof(hci_cmd_hdr_t));
arg1 = le16toh(mtod(m, hci_cmd_hdr_t *)->opcode);
hci_cmd_hdr_t *p;
p = mtod(m, hci_cmd_hdr_t *);
m->m_pkthdr.len = m->m_len = sizeof(hci_cmd_hdr_t);
m_copyback(m, sizeof(hci_cmd_hdr_t), len, buf);
if (m->m_pkthdr.len != (sizeof(hci_cmd_hdr_t) + len)) {
uint8_t buf[sizeof(hci_cmd_hdr_t) + HCI_CMD_PKT_SIZE];
hci_cmd_hdr_t *hdr;
hdr = (hci_cmd_hdr_t *)buf;
memcpy(buf + sizeof(hci_cmd_hdr_t), cptr, clen);
|| send(fd, buf, sizeof(hci_cmd_hdr_t) + clen, 0) < 0)
hci_cmd_hdr_t hdr;
hci_cmd_hdr_t *h = (hci_cmd_hdr_t *)msg;
memcpy(msg + sizeof(hci_cmd_hdr_t), buf, len);
return sendto(sock, msg, sizeof(hci_cmd_hdr_t) + len, MSG_NOSIGNAL,