NGI_MSG
msg = NGI_MSG(item); /* only peeking */
switch (NGI_MSG(item)->header.typecookie) {
switch (NGI_MSG(item)->header.cmd) {
ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data);
ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data);
if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
NGI_MSG(item)->header.arglen);
ep = (ng_hci_lp_discon_req_ep *)(NGI_MSG(item)->data);
if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
NGI_MSG(item)->header.arglen);
ep = (ng_hci_lp_con_rsp_ep *)(NGI_MSG(item)->data);
if (NGI_MSG(item)->header.arglen != sizeof(ng_hci_lp_con_req_ep)) {
NGI_MSG(item)->header.arglen);
if (((ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data))->link_type == NG_HCI_LINK_ACL)
if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
NGI_MSG(item)->header.arglen);
ep = (ng_hci_lp_qos_req_ep *)(NGI_MSG(item)->data);
struct ng_mesg *msg = NGI_MSG(item); /* item still has message */
struct ng_mesg *msg = NGI_MSG(item); /* item still has message */
struct ng_mesg *msg = NGI_MSG(item); /* item still has message */
struct ng_mesg *msg = NGI_MSG(item); /* item still has message */
struct ng_mesg *msg = NGI_MSG(item); /* item still has message */
NGI_MSG(item) = resp; \
(m) = NGI_MSG(i); \
if ((NGI_MSG(item)->header.typecookie == NGM_GENERIC_COOKIE) &&
((NGI_MSG(item)->header.flags & NGF_RESP) == 0)) {
NGI_MSG(item) = msg; /* put it back as we found it */
NGI_MSG(item) = msg;
NGI_MSG(item) = msg;
NGI_MSG(item) = msg; /* put it back in the item */
NGI_MSG(item) = msg;