ng_hci_cmd_pkt_t
ng_hci_cmd_pkt_t h;
ng_hci_cmd_pkt_t *h = (ng_hci_cmd_pkt_t *) buf;
sizeof(ng_hci_cmd_pkt_t) + NG_HCI_CMD_PKT_SIZE)
if (mtod(m, ng_hci_cmd_pkt_t *)->opcode != opcode) {
m_adj(*cp, sizeof(ng_hci_cmd_pkt_t));
opcode = le16toh(mtod(m, ng_hci_cmd_pkt_t *)->opcode);
ng_hci_cmd_pkt_t hdr;
if (m->m_pkthdr.len < sizeof(ng_hci_cmd_pkt_t)) {
NG_HCI_M_PULLUP(m, sizeof(ng_hci_cmd_pkt_t));
mtod(m, ng_hci_cmd_pkt_t *)->length + sizeof(ng_hci_cmd_pkt_t)) {
mtod(m, ng_hci_cmd_pkt_t *)->length);
if (mtod(m, ng_hci_cmd_pkt_t *)->opcode == 0) {
ng_hci_cmd_pkt_t hdr;
ng_hci_cmd_pkt_t hdr;
ng_hci_cmd_pkt_t hdr;
ng_hci_cmd_pkt_t hdr;
ng_hci_cmd_pkt_t hdr;
ng_hci_cmd_pkt_t hdr;
if (m->m_pkthdr.len < sizeof(ng_hci_cmd_pkt_t) ||
m->m_pkthdr.len > sizeof(ng_hci_cmd_pkt_t) + NG_HCI_CMD_PKT_SIZE) {
if (m->m_len < sizeof(ng_hci_cmd_pkt_t)) {
if ((m = m_pullup(m, sizeof(ng_hci_cmd_pkt_t))) == NULL) {
opcode = le16toh(mtod(m, ng_hci_cmd_pkt_t *)->opcode);
ng_hci_cmd_pkt_t hdr;
assert(size >= sizeof(ng_hci_cmd_pkt_t));
assert(size <= sizeof(ng_hci_cmd_pkt_t) + NG_HCI_CMD_PKT_SIZE);
ng_hci_cmd_pkt_t *c = (ng_hci_cmd_pkt_t *) buffer;
ng_hci_cmd_pkt_t *cmd = NULL;
cmd = (ng_hci_cmd_pkt_t *) buffer;
ng_hci_cmd_pkt_t *cmd = NULL;
cmd = (ng_hci_cmd_pkt_t *) buffer;