SIOC_HCI_RAW_NODE_GET_STATE |
| Returns current state for the HCI node. |
SIOC_HCI_RAW_NODE_INIT |
| Turn on "inited" bit for the HCI node. |
SIOC_HCI_RAW_NODE_GET_DEBUG |
| Returns current debug level for the HCI node. |
SIOC_HCI_RAW_NODE_SET_DEBUG |
| Sets current debug level for the HCI node. |
SIOC_HCI_RAW_NODE_GET_BUFFER |
| Returns current state of data buffers for the HCI node. |
SIOC_HCI_RAW_NODE_GET_BDADDR |
| Returns BD_ADDR for the HCI node. |
SIOC_HCI_RAW_NODE_GET_FEATURES |
| Returns the list of features supported by hardware for the HCI node. |
SIOC_HCI_RAW_NODE_GET_STAT |
| Returns various statistic counters for the HCI node. |
SIOC_HCI_RAW_NODE_RESET_STAT |
| Resets all statistic counters for the HCI node to zero. |
SIOC_HCI_RAW_NODE_FLUSH_NEIGHBOR_CACHE |
| Remove all neighbor cache entries for the HCI node. |
SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE |
| Returns content of the neighbor cache for the HCI node. |
SIOC_HCI_RAW_NODE_GET_CON_LIST |
| Returns list of active baseband connections (i.e., ACL and SCO links) for the HCI node. |
SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK |
| Returns current link policy settings mask for the HCI node. |
SIOC_HCI_RAW_NODE_SET_LINK_POLICY_MASK |
| Sets current link policy settings mask for the HCI node. |
SIOC_HCI_RAW_NODE_GET_PACKET_MASK |
| Returns current packet mask for the HCI node. |
SIOC_HCI_RAW_NODE_SET_PACKET_MASK |
| Sets current packet mask for the HCI node. |
SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH |
| Returns current value of the role switch parameter for the HCI node. |
SIOC_HCI_RAW_NODE_SET_ROLE_SWITCH |
| Sets new value of the role switch parameter for the HCI node. |
|
Raw HCI sockets support filters. The application can filter certain HCI datagram types. For HCI event datagrams the application can set additional filter. The raw HCI socket filter defined as follows:
/*
* Raw HCI socket filter.
*
* For packet mask use (1 << (HCI packet indicator - 1))
* For event mask use (1 << (Event - 1))
*/
SIOC_L2CAP_NODE_GET_FLAGS |
| Returns current state for the L2CAP node. |
SIOC_L2CAP_NODE_GET_DEBUG |
| Returns current debug level for the L2CAP node. |
SIOC_L2CAP_NODE_SET_DEBUG |
| Sets current debug level for the L2CAP node. |
SIOC_L2CAP_NODE_GET_CON_LIST |
| Returns list of active baseband connections (i.e., ACL links) for the L2CAP node. |
SIOC_L2CAP_NODE_GET_CHAN_LIST |
| Returns list of active channels for the L2CAP node. |
SIOC_L2CAP_NODE_GET_AUTO_DISCON_TIMO |
| Returns current value of the auto disconnect timeout for the L2CAP node. |
SIOC_L2CAP_NODE_SET_AUTO_DISCON_TIMO |
| Sets current value of the auto disconnect timeout for the L2CAP node. |
SIOC_L2CAP_L2CA_PING |
| Issues L2CAP ECHO_REQUEST. |
SIOC_L2CAP_L2CA_GET_INFO |
| Issues L2CAP GET_INFO request. |
|
Dv SOCK_STREAM Ss RFCOMM sockets
Note that RFCOMM sockets do not have associated Netgraph node type. RFCOMM sockets are implemented as additional layer on top of L2CAP sockets. RFCOMM sockets are either "active" or "passive". Active sockets initiate connections to passive sockets. By default, RFCOMM sockets are created active; to create a passive socket, the listen(2) system call must be used after binding the socket with the bind(2) system call. Only passive sockets may use the accept(2) call to accept incoming connections. Only active sockets may use the connect(2) call to initiate connections. RFCOMM sockets support ""wildcard addressing"". In this case, socket must be bound to NG_HCI_BDADDR_ANY address. Note that RFCOMM channel field is always required. Once a connection has been established, the sockets address is fixed by the peer entitys location. The address assigned to the socket is the address associated with the Bluetooth device through which packets are being transmitted and received, and RFCOMM channel.
The following options, which can be tested with getsockopt(2) call, are defined at SOL_RFCOMM level for RFCOMM sockets: