FreeBSD kernel netgraph code
ng_btsocket_hci_raw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ng_btsocket_hci_raw_pcb
 

Macros

#define NG_BTSOCKET_HCI_RAW_SENDSPACE   (4 * 1024)
 
#define NG_BTSOCKET_HCI_RAW_RECVSPACE   (4 * 1024)
 
#define NG_BTSOCKET_HCI_RAW_DIRECTION   (1 << 0)
 
#define NG_BTSOCKET_HCI_RAW_PRIVILEGED   (1 << 1)
 
#define so2hci_raw_pcb(so)    ((struct ng_btsocket_hci_raw_pcb *)((so)->so_pcb))
 

Typedefs

typedef struct ng_btsocket_hci_raw_pcb ng_btsocket_hci_raw_pcb_t
 
typedef struct ng_btsocket_hci_raw_pcbng_btsocket_hci_raw_pcb_p
 

Functions

void ng_btsocket_hci_raw_abort (struct socket *)
 
void ng_btsocket_hci_raw_close (struct socket *)
 
int ng_btsocket_hci_raw_attach (struct socket *, int, struct thread *)
 
int ng_btsocket_hci_raw_bind (struct socket *, struct sockaddr *, struct thread *)
 
int ng_btsocket_hci_raw_connect (struct socket *, struct sockaddr *, struct thread *)
 
int ng_btsocket_hci_raw_control (struct socket *, u_long, caddr_t, struct ifnet *, struct thread *)
 
int ng_btsocket_hci_raw_ctloutput (struct socket *, struct sockopt *)
 
void ng_btsocket_hci_raw_detach (struct socket *)
 
int ng_btsocket_hci_raw_disconnect (struct socket *)
 
int ng_btsocket_hci_raw_peeraddr (struct socket *, struct sockaddr **)
 
int ng_btsocket_hci_raw_send (struct socket *, int, struct mbuf *, struct sockaddr *, struct mbuf *, struct thread *)
 
int ng_btsocket_hci_raw_sockaddr (struct socket *, struct sockaddr **)
 

Macro Definition Documentation

◆ NG_BTSOCKET_HCI_RAW_DIRECTION

#define NG_BTSOCKET_HCI_RAW_DIRECTION   (1 << 0)

Definition at line 49 of file ng_btsocket_hci_raw.h.

◆ NG_BTSOCKET_HCI_RAW_PRIVILEGED

#define NG_BTSOCKET_HCI_RAW_PRIVILEGED   (1 << 1)

Definition at line 50 of file ng_btsocket_hci_raw.h.

◆ NG_BTSOCKET_HCI_RAW_RECVSPACE

#define NG_BTSOCKET_HCI_RAW_RECVSPACE   (4 * 1024)

Definition at line 40 of file ng_btsocket_hci_raw.h.

◆ NG_BTSOCKET_HCI_RAW_SENDSPACE

#define NG_BTSOCKET_HCI_RAW_SENDSPACE   (4 * 1024)

Definition at line 39 of file ng_btsocket_hci_raw.h.

◆ so2hci_raw_pcb

#define so2hci_raw_pcb (   so)     ((struct ng_btsocket_hci_raw_pcb *)((so)->so_pcb))

Definition at line 61 of file ng_btsocket_hci_raw.h.

Typedef Documentation

◆ ng_btsocket_hci_raw_pcb_p

Definition at line 59 of file ng_btsocket_hci_raw.h.

◆ ng_btsocket_hci_raw_pcb_t

Definition at line 58 of file ng_btsocket_hci_raw.h.

Function Documentation

◆ ng_btsocket_hci_raw_abort()

void ng_btsocket_hci_raw_abort ( struct socket *  so)

Definition at line 896 of file ng_btsocket_hci_raw.c.

◆ ng_btsocket_hci_raw_attach()

◆ ng_btsocket_hci_raw_bind()

int ng_btsocket_hci_raw_bind ( struct socket *  so,
struct sockaddr *  nam,
struct thread *  td 
)

◆ ng_btsocket_hci_raw_close()

void ng_btsocket_hci_raw_close ( struct socket *  so)

Definition at line 901 of file ng_btsocket_hci_raw.c.

◆ ng_btsocket_hci_raw_connect()

int ng_btsocket_hci_raw_connect ( struct socket *  so,
struct sockaddr *  nam,
struct thread *  td 
)

◆ ng_btsocket_hci_raw_control()

int ng_btsocket_hci_raw_control ( struct socket *  so,
u_long  cmd,
caddr_t  data,
struct ifnet *  ifp,
struct thread *  td 
)

Definition at line 1034 of file ng_btsocket_hci_raw.c.

References ng_btsocket_hci_raw_pcb::addr, ng_btsocket_hci_raw_node_bdaddr::bdaddr, ng_btsocket_hci_raw_node_buffer::buffer, ng_mesg::ng_msghdr::cmd, ng_btsocket_hci_raw_con_list::connections, data, ng_mesg::data, ng_btsocket_hci_raw_node_debug::debug, ng_btsocket_hci_raw_node_neighbor_cache::entries, ng_btsocket_hci_raw_node_features::features, ng_btsocket_hci_raw_pcb::flags, sockaddr_hci::hci_node, ng_mesg::header, min, ng_btsocket_hci_raw_pcb::msg, ng_btsocket_hci_raw_node_list_names::names, ng_btsocket_hci_raw_get_token(), ng_btsocket_hci_raw_ioctl_timeout, ng_btsocket_hci_raw_node, NG_BTSOCKET_HCI_RAW_PRIVILEGED, ng_btsocket_hci_raw_send_ngmsg(), ng_btsocket_hci_raw_send_sync_ngmsg(), NG_FREE_MSG, NG_HCI_MAX_CON_NUM, NG_HCI_MAX_NEIGHBOR_NUM, NG_HCI_NODE_TYPE, NG_MKMESSAGE, NG_NODESIZ, NG_SEND_MSG_PATH, NGM_GENERIC_COOKIE, NGM_HCI_COOKIE, NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE, NGM_HCI_NODE_GET_BDADDR, NGM_HCI_NODE_GET_BUFFER, NGM_HCI_NODE_GET_CON_LIST, NGM_HCI_NODE_GET_DEBUG, NGM_HCI_NODE_GET_FEATURES, NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK, NGM_HCI_NODE_GET_NEIGHBOR_CACHE, NGM_HCI_NODE_GET_PACKET_MASK, NGM_HCI_NODE_GET_ROLE_SWITCH, NGM_HCI_NODE_GET_STAT, NGM_HCI_NODE_GET_STATE, NGM_HCI_NODE_INIT, NGM_HCI_NODE_RESET_STAT, NGM_HCI_NODE_SET_DEBUG, NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK, NGM_HCI_NODE_SET_PACKET_MASK, NGM_HCI_NODE_SET_ROLE_SWITCH, NGM_LISTNAMES, namelist::nodeinfo, ng_btsocket_hci_raw_con_list::num_connections, ng_hci_node_con_list_ep::num_connections, ng_btsocket_hci_raw_node_neighbor_cache::num_entries, ng_hci_node_get_neighbor_cache_ep::num_entries, ng_btsocket_hci_raw_node_list_names::num_names, namelist::numnames, ng_btsocket_hci_raw_node_packet_mask::packet_mask, ng_btsocket_hci_raw_pcb::pcb_mtx, ng_btsocket_hci_raw_node_link_policy_mask::policy_mask, ng_btsocket_hci_raw_node_role_switch::role_switch, SIOC_HCI_RAW_NODE_FLUSH_NEIGHBOR_CACHE, SIOC_HCI_RAW_NODE_GET_BDADDR, SIOC_HCI_RAW_NODE_GET_BUFFER, SIOC_HCI_RAW_NODE_GET_CON_LIST, SIOC_HCI_RAW_NODE_GET_DEBUG, SIOC_HCI_RAW_NODE_GET_FEATURES, SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK, SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE, SIOC_HCI_RAW_NODE_GET_PACKET_MASK, SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH, SIOC_HCI_RAW_NODE_GET_STAT, SIOC_HCI_RAW_NODE_GET_STATE, SIOC_HCI_RAW_NODE_INIT, SIOC_HCI_RAW_NODE_LIST_NAMES, SIOC_HCI_RAW_NODE_RESET_STAT, SIOC_HCI_RAW_NODE_SET_DEBUG, SIOC_HCI_RAW_NODE_SET_LINK_POLICY_MASK, SIOC_HCI_RAW_NODE_SET_PACKET_MASK, SIOC_HCI_RAW_NODE_SET_ROLE_SWITCH, so2hci_raw_pcb, ng_btsocket_hci_raw_node_stat::stat, ng_btsocket_hci_raw_node_state::state, ng_btsocket_hci_raw_pcb::token, and ng_mesg::ng_msghdr::token.

Here is the call graph for this function:

◆ ng_btsocket_hci_raw_ctloutput()

◆ ng_btsocket_hci_raw_detach()

void ng_btsocket_hci_raw_detach ( struct socket *  so)

◆ ng_btsocket_hci_raw_disconnect()

int ng_btsocket_hci_raw_disconnect ( struct socket *  so)

◆ ng_btsocket_hci_raw_peeraddr()

int ng_btsocket_hci_raw_peeraddr ( struct socket *  so,
struct sockaddr **  nam 
)

Definition at line 1565 of file ng_btsocket_hci_raw.c.

References ng_btsocket_hci_raw_sockaddr().

Here is the call graph for this function:

◆ ng_btsocket_hci_raw_send()

int ng_btsocket_hci_raw_send ( struct socket *  so,
int  flags,
struct mbuf *  m,
struct sockaddr *  sa,
struct mbuf *  control,
struct thread *  td 
)

◆ ng_btsocket_hci_raw_sockaddr()

int ng_btsocket_hci_raw_sockaddr ( struct socket *  so,
struct sockaddr **  nam 
)