FreeBSD kernel netgraph code
|
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/endian.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/queue.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/bluetooth/include/ng_hci.h>
#include <netgraph/bluetooth/include/ng_l2cap.h>
#include <netgraph/bluetooth/l2cap/ng_l2cap_var.h>
#include <netgraph/bluetooth/l2cap/ng_l2cap_cmds.h>
#include <netgraph/bluetooth/l2cap/ng_l2cap_evnt.h>
#include <netgraph/bluetooth/l2cap/ng_l2cap_llpi.h>
#include <netgraph/bluetooth/l2cap/ng_l2cap_ulpi.h>
#include <netgraph/bluetooth/l2cap/ng_l2cap_misc.h>
Go to the source code of this file.
int ng_l2cap_l2ca_cfg_ind | ( | ng_l2cap_chan_p | ch | ) |
Definition at line 794 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_mesg::data, ng_l2cap_l2ca_cfg_ind_ip::flush_timo, ng_l2cap_chan::flush_timo, ng_l2cap_l2ca_cfg_ind_ip::iflow, ng_l2cap_chan::iflow, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_l2ca_cfg_ind_ip::lcid, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_CFG_IND, ng_l2cap::node, ng_l2cap_l2ca_cfg_ind_ip::omtu, ng_l2cap_chan::omtu, ng_l2cap_chan::psm, and ng_l2cap_chan::scid.
Referenced by ng_l2cap_process_cfg_req().
int ng_l2cap_l2ca_cfg_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 472 of file ng_l2cap_ulpi.c.
References _ng_l2cap_build_cfg_options, _ng_l2cap_cfg_req, ng_mesg::ng_msghdr::arglen, ng_l2cap_chan::cfg_state, ng_l2cap_chan::con, ng_mesg::data, ng_l2cap_chan::dcid, ng_l2cap_l2ca_cfg_ip::flush_timo, ng_l2cap_chan::flush_timo, ng_mesg::header, ng_l2cap_l2ca_cfg_ip::imtu, ng_l2cap_chan::imtu, ng_l2cap_l2ca_cfg_ip::lcid, ng_l2cap_l2ca_cfg_ip::link_timo, ng_l2cap_chan::link_timo, mtu, NG_FREE_M, NG_L2CAP_ALERT, NG_L2CAP_ATT_CID, NG_L2CAP_CFG_REQ, ng_l2cap_chan_by_scid(), NG_L2CAP_CONFIG, ng_l2cap_default_flow(), NG_L2CAP_ERR, NG_L2CAP_FLUSH_TIMO_DEFAULT, ng_l2cap_free_cmd, ng_l2cap_get_ident(), NG_L2CAP_L2CA_IDTYPE_BREDR, ng_l2cap_link_cmd, ng_l2cap_lp_deliver(), NG_L2CAP_MTU_DEFAULT, ng_l2cap_new_cmd(), NG_L2CAP_NULL_IDENT, NG_L2CAP_OPEN, NG_L2CAP_SMP_CID, NG_NODE_NAME, ng_l2cap::node, ng_l2cap_l2ca_cfg_ip::oflow, ng_l2cap_chan::oflow, ng_l2cap_chan::scid, ng_l2cap_chan::state, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_cfg_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result | ||
) |
Definition at line 581 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::cfg_state, ng_l2cap_chan::con, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_l2cap_l2ca_cfg_op::flush_timo, ng_l2cap_chan::flush_timo, ng_mesg::header, ng_l2cap_l2ca_cfg_op::imtu, ng_l2cap_chan::imtu, ng_l2cap::l2c, ng_l2cap_con::l2cap, NG_HOOK_NOT_VALID, NG_L2CAP_CFG_BOTH, NG_L2CAP_CFG_IN, NG_L2CAP_ERR, NG_L2CAP_OPEN, NG_L2CAP_SUCCESS, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_CFG, ng_l2cap::node, ng_l2cap_l2ca_cfg_op::oflow, ng_l2cap_chan::oflow, ng_l2cap_chan::psm, ng_l2cap_l2ca_cfg_op::result, ng_l2cap_chan::state, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_wakeup(), ng_l2cap_process_cfg_rsp(), ng_l2cap_process_cmd_rej(), and ng_l2cap_process_command_timeout().
int ng_l2cap_l2ca_cfg_rsp_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 644 of file ng_l2cap_ulpi.c.
References _ng_l2cap_build_cfg_options, _ng_l2cap_cfg_rsp, ng_mesg::ng_msghdr::arglen, ng_l2cap_chan::cfg_state, ng_l2cap_chan::con, ng_mesg::data, ng_l2cap_chan::dcid, ng_mesg::header, ng_l2cap_chan::ident, ng_l2cap_l2ca_cfg_rsp_ip::iflow, ng_l2cap_chan::iflow, ng_l2cap_l2ca_cfg_rsp_ip::lcid, mtu, NG_FREE_M, NG_L2CAP_ALERT, NG_L2CAP_CFG_BOTH, NG_L2CAP_CFG_OUT, NG_L2CAP_CFG_RSP, ng_l2cap_chan_by_scid(), NG_L2CAP_CONFIG, NG_L2CAP_ERR, ng_l2cap_free_cmd, NG_L2CAP_L2CA_IDTYPE_BREDR, ng_l2cap_link_cmd, ng_l2cap_lp_deliver(), ng_l2cap_new_cmd(), NG_L2CAP_OPEN, NG_L2CAP_SUCCESS, NG_NODE_NAME, ng_l2cap::node, ng_l2cap_l2ca_cfg_rsp_ip::omtu, ng_l2cap_chan::omtu, ng_l2cap_chan::scid, ng_l2cap_chan::state, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_cfg_rsp_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result | ||
) |
Definition at line 741 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap::l2c, ng_l2cap_con::l2cap, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_CFG_RSP, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_l2ca_cfg_rsp_op::result, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_wakeup().
int ng_l2cap_l2ca_clt_receive | ( | ng_l2cap_con_p | con | ) |
Definition at line 1098 of file ng_l2cap_ulpi.c.
References __attribute__, ng_l2cap::flags, ng_l2cap::l2c, ng_l2cap_con::l2cap, length, NG_FREE_M, NG_HOOK_NOT_VALID, NG_L2CAP_CLT_RFCOMM_DISABLED, NG_L2CAP_CLT_SDP_DISABLED, NG_L2CAP_CLT_TCP_DISABLED, NG_L2CAP_ERR, NG_L2CAP_M_PULLUP, NG_L2CAP_MTU_DEFAULT, NG_L2CAP_PSM_RFCOMM, NG_L2CAP_PSM_SDP, NG_L2CAP_PSM_TCP, NG_NODE_NAME, NG_SEND_DATA_ONLY, ng_l2cap::node, and ng_l2cap_con::rx_pkt.
Referenced by ng_l2cap_receive().
int ng_l2cap_l2ca_con_ind | ( | ng_l2cap_chan_p | ch | ) |
Definition at line 430 of file ng_l2cap_ulpi.c.
References ng_l2cap_l2ca_con_ind_ip::bdaddr, ng_l2cap_chan::con, ng_mesg::data, ng_l2cap_l2ca_con_ind_ip::ident, ng_l2cap_chan::ident, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_l2ca_con_ind_ip::lcid, ng_l2cap_l2ca_con_ind_ip::linktype, ng_l2cap_con::linktype, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_CON_IND, ng_l2cap::node, ng_l2cap_l2ca_con_ind_ip::psm, ng_l2cap_chan::psm, ng_l2cap_con::remote, and ng_l2cap_chan::scid.
Referenced by ng_l2cap_process_con_req().
int ng_l2cap_l2ca_con_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 65 of file ng_l2cap_ulpi.c.
References _ng_l2cap_con_req, _ng_l2cap_con_rsp, ng_mesg::ng_msghdr::arglen, ng_l2cap_l2ca_con_ip::bdaddr, ng_l2cap_chan::con, ng_mesg::data, ng_mesg::header, ng_l2cap_l2ca_con_ip::idtype, ng_l2cap_l2ca_con_ip::linktype, NG_L2CAP_ALERT, NG_L2CAP_ATT_CID, ng_l2cap_con_by_addr(), NG_L2CAP_CON_REQ, NG_L2CAP_ERR, ng_l2cap_free_chan(), ng_l2cap_free_cmd, ng_l2cap_get_ident(), NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_SMP, ng_l2cap_link_cmd, ng_l2cap_lp_con_req(), ng_l2cap_lp_deliver(), ng_l2cap_new_chan(), ng_l2cap_new_cmd(), NG_L2CAP_NULL_IDENT, NG_L2CAP_SMP_CID, NG_L2CAP_W4_L2CAP_CON_RSP, NG_NODE_NAME, ng_l2cap::node, ng_l2cap_l2ca_con_ip::psm, ng_l2cap_chan::psm, ng_l2cap_chan::scid, ng_l2cap_chan::state, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_con_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result, | ||
u_int16_t | status | ||
) |
Definition at line 163 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_l2cap_con::con_handle, ng_mesg::data, ng_l2cap_l2ca_con_op::encryption, ng_l2cap_con::encryption, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap_l2ca_con_op::idtype, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_l2ca_con_op::lcid, ng_l2cap_con::linktype, NG_HCI_LINK_ACL, NG_HOOK_NOT_VALID, NG_L2CAP_ATT_CID, NG_L2CAP_ERR, NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_BREDR, NG_L2CAP_L2CA_IDTYPE_LE, NG_L2CAP_L2CA_IDTYPE_SMP, NG_L2CAP_SMP_CID, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_CON, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_l2ca_con_op::result, ng_l2cap_chan::scid, status, ng_l2cap_l2ca_con_op::status, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_fail(), ng_l2cap_con_wakeup(), ng_l2cap_process_cmd_rej(), ng_l2cap_process_command_timeout(), and ng_l2cap_process_con_rsp().
int ng_l2cap_l2ca_con_rsp_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 224 of file ng_l2cap_ulpi.c.
References _ng_l2cap_con_rsp, ng_mesg::ng_msghdr::arglen, ng_l2cap_chan::cfg_state, ng_l2cap_chan::con, ng_mesg::data, dcid, ng_l2cap_chan::dcid, ng_mesg::header, ng_l2cap_l2ca_con_rsp_ip::ident, ng_l2cap_chan::ident, ng_l2cap_l2ca_con_rsp_ip::lcid, ng_l2cap_l2ca_con_rsp_ip::linktype, NG_HCI_LINK_ACL, NG_L2CAP_ALERT, NG_L2CAP_ATT_CID, ng_l2cap_chan_by_scid(), NG_L2CAP_CON_RSP, NG_L2CAP_CONFIG, NG_L2CAP_ERR, ng_l2cap_free_chan(), ng_l2cap_free_cmd, NG_L2CAP_L2CA_IDTYPE_BREDR, NG_L2CAP_L2CA_IDTYPE_LE, ng_l2cap_link_cmd, ng_l2cap_lp_deliver(), ng_l2cap_new_cmd(), NG_L2CAP_OPEN, NG_L2CAP_PENDING, NG_L2CAP_SMP_CID, NG_L2CAP_SUCCESS, NG_L2CAP_W4_L2CA_CON_RSP, NG_L2CAP_WARN, NG_NODE_NAME, ng_l2cap::node, ng_l2cap_l2ca_con_rsp_ip::result, ng_l2cap_chan::scid, ng_l2cap_chan::state, ng_l2cap_l2ca_con_rsp_ip::status, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_con_rsp_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result | ||
) |
Definition at line 390 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap::l2c, ng_l2cap_con::l2cap, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_CON_RSP, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_l2ca_con_rsp_op::result, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_fail(), and ng_l2cap_con_wakeup().
int ng_l2cap_l2ca_discon_ind | ( | ng_l2cap_chan_p | ch | ) |
Definition at line 1369 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_l2cap_con::con_handle, ng_mesg::data, ng_l2cap_l2ca_discon_ip::idtype, ng_l2cap_chan::idtype, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_l2ca_discon_ip::lcid, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_SMP, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_DISCON_IND, ng_l2cap::node, ng_l2cap_chan::psm, and ng_l2cap_chan::scid.
Referenced by ng_l2cap_con_fail(), ng_l2cap_process_cfg_req(), and ng_l2cap_process_discon_req().
int ng_l2cap_l2ca_discon_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1217 of file ng_l2cap_ulpi.c.
References _ng_l2cap_discon_req, ng_mesg::ng_msghdr::arglen, ng_l2cap_chan::con, ng_mesg::data, ng_l2cap_chan::dcid, ng_mesg::header, ng_l2cap_l2ca_discon_ip::idtype, ng_l2cap_l2ca_discon_ip::lcid, NG_L2CAP_ALERT, NG_L2CAP_ATT_CID, ng_l2cap_chan_by_conhandle(), ng_l2cap_chan_by_scid(), NG_L2CAP_CONFIG, NG_L2CAP_DISCON_REQ, NG_L2CAP_ERR, ng_l2cap_free_chan(), ng_l2cap_free_cmd, ng_l2cap_get_ident(), NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_SMP, ng_l2cap_link_cmd, ng_l2cap_lp_deliver(), ng_l2cap_new_cmd(), NG_L2CAP_NULL_IDENT, NG_L2CAP_OPEN, NG_L2CAP_SMP_CID, NG_L2CAP_W4_L2CAP_DISCON_RSP, NG_NODE_NAME, ng_l2cap::node, ng_l2cap_chan::scid, ng_l2cap_chan::state, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_discon_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result | ||
) |
Definition at line 1329 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap::l2c, ng_l2cap_con::l2cap, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_DISCON, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_l2ca_discon_op::result, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_fail(), ng_l2cap_con_wakeup(), ng_l2cap_process_cmd_rej(), ng_l2cap_process_command_timeout(), and ng_l2cap_process_discon_rsp().
int ng_l2cap_l2ca_enable_clt | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1728 of file ng_l2cap_ulpi.c.
References ng_mesg::ng_msghdr::arglen, ng_l2cap::ctl, ng_mesg::data, ng_l2cap_l2ca_enable_clt_ip::enable, ng_l2cap::flags, ng_mesg::ng_msghdr::flags, ng_mesg::header, NG_FREE_MSG, NG_HOOK_IS_VALID, NG_L2CAP_ALERT, NG_L2CAP_CLT_RFCOMM_DISABLED, NG_L2CAP_CLT_SDP_DISABLED, NG_L2CAP_CLT_TCP_DISABLED, NG_L2CAP_ERR, NG_L2CAP_PSM_NOT_SUPPORTED, NG_L2CAP_PSM_RFCOMM, NG_L2CAP_PSM_SDP, NG_L2CAP_PSM_TCP, NG_L2CAP_SUCCESS, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_ENABLE_CLT, ng_l2cap::node, ng_l2cap_l2ca_enable_clt_ip::psm, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_encryption_change | ( | ng_l2cap_chan_p | ch, |
uint16_t | result | ||
) |
Definition at line 338 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_l2cap_con::con_handle, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap_l2ca_enc_chg_op::idtype, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_l2ca_enc_chg_op::lcid, ng_l2cap_con::linktype, NG_HCI_LINK_ACL, NG_HOOK_NOT_VALID, NG_L2CAP_ATT_CID, NG_L2CAP_ERR, NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_BREDR, NG_L2CAP_L2CA_IDTYPE_LE, NG_L2CAP_L2CA_IDTYPE_SMP, NG_L2CAP_SMP_CID, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_ENC_CHANGE, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_l2ca_enc_chg_op::result, ng_l2cap_chan::scid, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_lp_enc_change().
int ng_l2cap_l2ca_get_info_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1607 of file ng_l2cap_ulpi.c.
References _ng_l2cap_info_req, ng_mesg::ng_msghdr::arglen, ng_l2cap_l2ca_get_info_ip::bdaddr, ng_mesg::data, ng_mesg::header, ng_l2cap_l2ca_get_info_ip::info_type, ng_l2cap_l2ca_get_info_ip::linktype, NG_L2CAP_ALERT, ng_l2cap_con_by_addr(), NG_L2CAP_ERR, ng_l2cap_free_cmd, ng_l2cap_get_ident(), NG_L2CAP_INFO_REQ, ng_l2cap_link_cmd, ng_l2cap_lp_con_req(), ng_l2cap_lp_deliver(), ng_l2cap_new_cmd(), NG_L2CAP_NULL_IDENT, NG_NODE_NAME, ng_l2cap::node, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_get_info_rsp | ( | ng_l2cap_con_p | con, |
u_int32_t | token, | ||
u_int16_t | result, | ||
struct mbuf * | data | ||
) |
Definition at line 1678 of file ng_l2cap_ulpi.c.
References ng_l2cap::ctl, data, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap_l2ca_get_info_op::info_size, ng_l2cap_con::l2cap, NG_FREE_M, NG_HOOK_NOT_VALID, NG_L2CAP_WARN, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_GET_INFO, ng_l2cap::node, ng_l2cap_l2ca_get_info_op::result, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_fail(), ng_l2cap_con_wakeup(), ng_l2cap_process_cmd_rej(), ng_l2cap_process_command_timeout(), and ng_l2cap_process_info_rsp().
int ng_l2cap_l2ca_grp_add_member_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1434 of file ng_l2cap_ulpi.c.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_grp_add_member_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result | ||
) |
Definition at line 1445 of file ng_l2cap_ulpi.c.
int ng_l2cap_l2ca_grp_close | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1423 of file ng_l2cap_ulpi.c.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_grp_create | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1412 of file ng_l2cap_ulpi.c.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_grp_get_members | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1468 of file ng_l2cap_ulpi.c.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_grp_rem_member | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1457 of file ng_l2cap_ulpi.c.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_ping_req | ( | ng_l2cap_p | l2cap, |
struct ng_mesg * | msg | ||
) |
Definition at line 1478 of file ng_l2cap_ulpi.c.
References _ng_l2cap_echo_req, ng_mesg::ng_msghdr::arglen, ng_l2cap_l2ca_ping_ip::bdaddr, ng_mesg::data, ng_l2cap_l2ca_ping_ip::echo_size, ng_mesg::header, NG_HCI_LINK_ACL, NG_L2CAP_ALERT, ng_l2cap_con_by_addr(), NG_L2CAP_ECHO_REQ, NG_L2CAP_ERR, ng_l2cap_free_cmd, ng_l2cap_get_ident(), ng_l2cap_link_cmd, ng_l2cap_lp_con_req(), ng_l2cap_lp_deliver(), NG_L2CAP_MAX_ECHO_SIZE, ng_l2cap_new_cmd(), NG_L2CAP_NULL_IDENT, NG_L2CAP_WARN, NG_NODE_NAME, ng_l2cap::node, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_upper_rcvmsg().
int ng_l2cap_l2ca_ping_rsp | ( | ng_l2cap_con_p | con, |
u_int32_t | token, | ||
u_int16_t | result, | ||
struct mbuf * | data | ||
) |
Definition at line 1557 of file ng_l2cap_ulpi.c.
References ng_l2cap_l2ca_ping_op::bdaddr, ng_l2cap::ctl, data, ng_mesg::data, ng_l2cap_l2ca_ping_op::echo_size, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap_con::l2cap, NG_FREE_M, NG_HOOK_NOT_VALID, NG_L2CAP_WARN, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_PING, ng_l2cap::node, ng_l2cap_con::remote, ng_l2cap_l2ca_ping_op::result, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_fail(), ng_l2cap_con_wakeup(), ng_l2cap_process_cmd_rej(), ng_l2cap_process_command_timeout(), and ng_l2cap_process_echo_rsp().
int ng_l2cap_l2ca_qos_ind | ( | ng_l2cap_chan_p | ch | ) |
Definition at line 1181 of file ng_l2cap_ulpi.c.
References ng_l2cap_l2ca_qos_ind_ip::bdaddr, ng_l2cap_chan::con, ng_mesg::data, ng_l2cap::l2c, ng_l2cap_con::l2cap, NG_HOOK_NOT_VALID, NG_L2CAP_ERR, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_QOS_IND, ng_l2cap::node, ng_l2cap_chan::psm, and ng_l2cap_con::remote.
int ng_l2cap_l2ca_receive | ( | ng_l2cap_con_p | con | ) |
Definition at line 989 of file ng_l2cap_ulpi.c.
References ng_l2cap_con::con_handle, ng_l2cap_chan::imtu, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_con::linktype, NG_FREE_M, NG_HCI_LINK_ACL, NG_HOOK_NOT_VALID, NG_L2CAP_ATT_CID, ng_l2cap_chan_by_conhandle(), ng_l2cap_chan_by_scid(), NG_L2CAP_ERR, NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_BREDR, NG_L2CAP_L2CA_IDTYPE_LE, NG_L2CAP_L2CA_IDTYPE_SMP, NG_L2CAP_M_PULLUP, NG_L2CAP_OPEN, NG_L2CAP_SMP_CID, NG_L2CAP_WARN, NG_NODE_NAME, NG_SEND_DATA_ONLY, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_con::rx_pkt, ng_l2cap_chan::scid, and ng_l2cap_chan::state.
Referenced by ng_l2cap_receive().
int ng_l2cap_l2ca_write_req | ( | ng_l2cap_p | l2cap, |
struct mbuf * | m | ||
) |
Definition at line 834 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, NG_FREE_M, NG_L2CAP_ATT_CID, ng_l2cap_chan_by_conhandle(), ng_l2cap_chan_by_scid(), NG_L2CAP_ERR, NG_L2CAP_FIRST_CID, NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_SMP, ng_l2cap_link_cmd, ng_l2cap_lp_deliver(), NG_L2CAP_M_PULLUP, ng_l2cap_new_cmd(), NG_L2CAP_OPEN, NG_L2CAP_SMP_CID, NG_NODE_NAME, NGM_L2CAP_L2CA_WRITE, ng_l2cap::node, ng_l2cap_chan::scid, and ng_l2cap_chan::state.
Referenced by ng_l2cap_rcvdata().
int ng_l2cap_l2ca_write_rsp | ( | ng_l2cap_chan_p | ch, |
u_int32_t | token, | ||
u_int16_t | result, | ||
u_int16_t | length | ||
) |
Definition at line 934 of file ng_l2cap_ulpi.c.
References ng_l2cap_chan::con, ng_l2cap_con::con_handle, ng_mesg::data, ng_mesg::ng_msghdr::flags, ng_mesg::header, ng_l2cap_l2ca_write_op::idtype, ng_l2cap::l2c, ng_l2cap_con::l2cap, ng_l2cap_l2ca_write_op::lcid, length, ng_l2cap_l2ca_write_op::length, ng_l2cap_con::linktype, NG_HCI_LINK_ACL, NG_HOOK_NOT_VALID, NG_L2CAP_ATT_CID, NG_L2CAP_ERR, NG_L2CAP_L2CA_IDTYPE_ATT, NG_L2CAP_L2CA_IDTYPE_BREDR, NG_L2CAP_L2CA_IDTYPE_LE, NG_L2CAP_L2CA_IDTYPE_SMP, NG_L2CAP_SMP_CID, NG_MKMESSAGE, NG_NODE_NAME, NG_SEND_MSG_HOOK, NGF_RESP, NGM_L2CAP_COOKIE, NGM_L2CAP_L2CA_WRITE, ng_l2cap::node, ng_l2cap_chan::psm, ng_l2cap_l2ca_write_op::result, ng_l2cap_chan::scid, and ng_mesg::ng_msghdr::token.
Referenced by ng_l2cap_con_wakeup().