Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bnep.h File Reference
#include <linux/types.h>
#include <linux/crc32.h>
#include <net/bluetooth/bluetooth.h>

Go to the source code of this file.

Data Structures

struct  bnep_setup_conn_req
 
struct  bnep_set_filter_req
 
struct  bnep_control_rsp
 
struct  bnep_ext_hdr
 
struct  bnep_connadd_req
 
struct  bnep_conndel_req
 
struct  bnep_conninfo
 
struct  bnep_connlist_req
 
struct  bnep_proto_filter
 
struct  bnep_session
 

Macros

#define BNEP_MAX_PROTO_FILTERS   5
 
#define BNEP_MAX_MULTICAST_FILTERS   20
 
#define BNEP_BASE_UUID   0x0000000000001000800000805F9B34FB
 
#define BNEP_UUID16   0x02
 
#define BNEP_UUID32   0x04
 
#define BNEP_UUID128   0x16
 
#define BNEP_SVC_PANU   0x1115
 
#define BNEP_SVC_NAP   0x1116
 
#define BNEP_SVC_GN   0x1117
 
#define BNEP_GENERAL   0x00
 
#define BNEP_CONTROL   0x01
 
#define BNEP_COMPRESSED   0x02
 
#define BNEP_COMPRESSED_SRC_ONLY   0x03
 
#define BNEP_COMPRESSED_DST_ONLY   0x04
 
#define BNEP_CMD_NOT_UNDERSTOOD   0x00
 
#define BNEP_SETUP_CONN_REQ   0x01
 
#define BNEP_SETUP_CONN_RSP   0x02
 
#define BNEP_FILTER_NET_TYPE_SET   0x03
 
#define BNEP_FILTER_NET_TYPE_RSP   0x04
 
#define BNEP_FILTER_MULTI_ADDR_SET   0x05
 
#define BNEP_FILTER_MULTI_ADDR_RSP   0x06
 
#define BNEP_EXT_CONTROL   0x00
 
#define BNEP_SUCCESS   0x00
 
#define BNEP_CONN_INVALID_DST   0x01
 
#define BNEP_CONN_INVALID_SRC   0x02
 
#define BNEP_CONN_INVALID_SVC   0x03
 
#define BNEP_CONN_NOT_ALLOWED   0x04
 
#define BNEP_FILTER_UNSUPPORTED_REQ   0x01
 
#define BNEP_FILTER_INVALID_RANGE   0x02
 
#define BNEP_FILTER_INVALID_MCADDR   0x02
 
#define BNEP_FILTER_LIMIT_REACHED   0x03
 
#define BNEP_FILTER_DENIED_SECURITY   0x04
 
#define BNEP_MTU   1691
 
#define BNEP_PSM   0x0f
 
#define BNEP_FLUSH_TO   0xffff
 
#define BNEP_CONNECT_TO   15
 
#define BNEP_FILTER_TO   15
 
#define BNEP_TYPE_MASK   0x7f
 
#define BNEP_EXT_HEADER   0x80
 
#define BNEPCONNADD   _IOW('B', 200, int)
 
#define BNEPCONNDEL   _IOW('B', 201, int)
 
#define BNEPGETCONNLIST   _IOR('B', 210, int)
 
#define BNEPGETCONNINFO   _IOR('B', 211, int)
 

Functions

int bnep_add_connection (struct bnep_connadd_req *req, struct socket *sock)
 
int bnep_del_connection (struct bnep_conndel_req *req)
 
int bnep_get_connlist (struct bnep_connlist_req *req)
 
int bnep_get_conninfo (struct bnep_conninfo *ci)
 
void bnep_net_setup (struct net_device *dev)
 
int bnep_sock_init (void)
 
void bnep_sock_cleanup (void)
 

Variables

struct bnep_setup_conn_req __packed
 

Macro Definition Documentation

#define BNEP_BASE_UUID   0x0000000000001000800000805F9B34FB

Definition at line 31 of file bnep.h.

#define BNEP_CMD_NOT_UNDERSTOOD   0x00

Definition at line 48 of file bnep.h.

#define BNEP_COMPRESSED   0x02

Definition at line 43 of file bnep.h.

#define BNEP_COMPRESSED_DST_ONLY   0x04

Definition at line 45 of file bnep.h.

#define BNEP_COMPRESSED_SRC_ONLY   0x03

Definition at line 44 of file bnep.h.

#define BNEP_CONN_INVALID_DST   0x01

Definition at line 62 of file bnep.h.

#define BNEP_CONN_INVALID_SRC   0x02

Definition at line 63 of file bnep.h.

#define BNEP_CONN_INVALID_SVC   0x03

Definition at line 64 of file bnep.h.

#define BNEP_CONN_NOT_ALLOWED   0x04

Definition at line 65 of file bnep.h.

#define BNEP_CONNECT_TO   15

Definition at line 77 of file bnep.h.

#define BNEP_CONTROL   0x01

Definition at line 42 of file bnep.h.

#define BNEP_EXT_CONTROL   0x00

Definition at line 57 of file bnep.h.

#define BNEP_EXT_HEADER   0x80

Definition at line 82 of file bnep.h.

#define BNEP_FILTER_DENIED_SECURITY   0x04

Definition at line 71 of file bnep.h.

#define BNEP_FILTER_INVALID_MCADDR   0x02

Definition at line 69 of file bnep.h.

#define BNEP_FILTER_INVALID_RANGE   0x02

Definition at line 68 of file bnep.h.

#define BNEP_FILTER_LIMIT_REACHED   0x03

Definition at line 70 of file bnep.h.

#define BNEP_FILTER_MULTI_ADDR_RSP   0x06

Definition at line 54 of file bnep.h.

#define BNEP_FILTER_MULTI_ADDR_SET   0x05

Definition at line 53 of file bnep.h.

#define BNEP_FILTER_NET_TYPE_RSP   0x04

Definition at line 52 of file bnep.h.

#define BNEP_FILTER_NET_TYPE_SET   0x03

Definition at line 51 of file bnep.h.

#define BNEP_FILTER_TO   15

Definition at line 78 of file bnep.h.

#define BNEP_FILTER_UNSUPPORTED_REQ   0x01

Definition at line 67 of file bnep.h.

#define BNEP_FLUSH_TO   0xffff

Definition at line 76 of file bnep.h.

#define BNEP_GENERAL   0x00

Definition at line 41 of file bnep.h.

#define BNEP_MAX_MULTICAST_FILTERS   20

Definition at line 28 of file bnep.h.

#define BNEP_MAX_PROTO_FILTERS   5

Definition at line 27 of file bnep.h.

#define BNEP_MTU   1691

Definition at line 74 of file bnep.h.

#define BNEP_PSM   0x0f

Definition at line 75 of file bnep.h.

#define BNEP_SETUP_CONN_REQ   0x01

Definition at line 49 of file bnep.h.

#define BNEP_SETUP_CONN_RSP   0x02

Definition at line 50 of file bnep.h.

#define BNEP_SUCCESS   0x00

Definition at line 60 of file bnep.h.

#define BNEP_SVC_GN   0x1117

Definition at line 38 of file bnep.h.

#define BNEP_SVC_NAP   0x1116

Definition at line 37 of file bnep.h.

#define BNEP_SVC_PANU   0x1115

Definition at line 36 of file bnep.h.

#define BNEP_TYPE_MASK   0x7f

Definition at line 81 of file bnep.h.

#define BNEP_UUID128   0x16

Definition at line 34 of file bnep.h.

#define BNEP_UUID16   0x02

Definition at line 32 of file bnep.h.

#define BNEP_UUID32   0x04

Definition at line 33 of file bnep.h.

#define BNEPCONNADD   _IOW('B', 200, int)

Definition at line 111 of file bnep.h.

#define BNEPCONNDEL   _IOW('B', 201, int)

Definition at line 112 of file bnep.h.

#define BNEPGETCONNINFO   _IOR('B', 211, int)

Definition at line 114 of file bnep.h.

#define BNEPGETCONNLIST   _IOR('B', 210, int)

Definition at line 113 of file bnep.h.

Function Documentation

int bnep_add_connection ( struct bnep_connadd_req req,
struct socket sock 
)

Definition at line 535 of file core.c.

int bnep_del_connection ( struct bnep_conndel_req req)

Definition at line 617 of file core.c.

int bnep_get_conninfo ( struct bnep_conninfo ci)

Definition at line 675 of file core.c.

int bnep_get_connlist ( struct bnep_connlist_req req)

Definition at line 647 of file core.c.

void bnep_net_setup ( struct net_device dev)

Definition at line 219 of file netdev.c.

void bnep_sock_cleanup ( void  )

Definition at line 253 of file sock.c.

int bnep_sock_init ( void  )

Definition at line 223 of file sock.c.

Variable Documentation