Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
struct ng_btsocket_l2cap_raw_pcb { | struct ng_btsocket_l2cap_raw_pcb { | ||||
struct socket *so; /* socket */ | struct socket *so; /* socket */ | ||||
u_int32_t flags; /* flags */ | u_int32_t flags; /* flags */ | ||||
#define NG_BTSOCKET_L2CAP_RAW_PRIVILEGED (1 << 0) | #define NG_BTSOCKET_L2CAP_RAW_PRIVILEGED (1 << 0) | ||||
bdaddr_t src; /* source address */ | bdaddr_t src; /* source address */ | ||||
bdaddr_t dst; /* dest address */ | bdaddr_t dst; /* dest address */ | ||||
uint8_t srctype;/*source addr type*/ | |||||
uint8_t dsttype;/*source addr type*/ | |||||
ng_btsocket_l2cap_rtentry_p rt; /* routing info */ | ng_btsocket_l2cap_rtentry_p rt; /* routing info */ | ||||
u_int32_t token; /* message token */ | u_int32_t token; /* message token */ | ||||
struct ng_mesg *msg; /* message */ | struct ng_mesg *msg; /* message */ | ||||
struct mtx pcb_mtx; /* pcb mutex */ | struct mtx pcb_mtx; /* pcb mutex */ | ||||
LIST_ENTRY(ng_btsocket_l2cap_raw_pcb) next; /* link to next PCB */ | LIST_ENTRY(ng_btsocket_l2cap_raw_pcb) next; /* link to next PCB */ | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
* Bluetooth L2CAP socket PCB | * Bluetooth L2CAP socket PCB | ||||
*/ | */ | ||||
struct ng_btsocket_l2cap_pcb { | struct ng_btsocket_l2cap_pcb { | ||||
struct socket *so; /* Pointer to socket */ | struct socket *so; /* Pointer to socket */ | ||||
bdaddr_t src; /* Source address */ | bdaddr_t src; /* Source address */ | ||||
bdaddr_t dst; /* Destination address */ | bdaddr_t dst; /* Destination address */ | ||||
uint8_t srctype; /*source addr type*/ | |||||
uint8_t dsttype; /*source addr type*/ | |||||
u_int16_t psm; /* PSM */ | u_int16_t psm; /* PSM */ | ||||
u_int16_t cid; /* Local channel ID */ | u_int16_t cid; /* Local channel ID */ | ||||
u_int16_t flags; /* socket flags */ | u_int16_t flags; /* socket flags */ | ||||
#define NG_BTSOCKET_L2CAP_CLIENT (1 << 0) /* socket is client */ | #define NG_BTSOCKET_L2CAP_CLIENT (1 << 0) /* socket is client */ | ||||
#define NG_BTSOCKET_L2CAP_TIMO (1 << 1) /* timeout pending */ | #define NG_BTSOCKET_L2CAP_TIMO (1 << 1) /* timeout pending */ | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |