~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to include/net/bluetooth/l2cap.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define L2CAP_DEFAULT_MAX_PDU_SIZE      1009    /* Sized for 3-DH5 packet */
39
39
#define L2CAP_DEFAULT_ACK_TO            200
40
40
#define L2CAP_LOCAL_BUSY_TRIES          12
 
41
#define L2CAP_LE_DEFAULT_MTU            23
41
42
 
42
43
#define L2CAP_CONN_TIMEOUT      (40000) /* 40 seconds */
43
44
#define L2CAP_INFO_TIMEOUT      (4000)  /*  4 seconds */
88
89
#define L2CAP_ECHO_RSP          0x09
89
90
#define L2CAP_INFO_REQ          0x0a
90
91
#define L2CAP_INFO_RSP          0x0b
 
92
#define L2CAP_CONN_PARAM_UPDATE_REQ     0x12
 
93
#define L2CAP_CONN_PARAM_UPDATE_RSP     0x13
91
94
 
92
95
/* L2CAP feature mask */
93
96
#define L2CAP_FEAT_FLOWCTL      0x00000001
160
163
/* channel indentifier */
161
164
#define L2CAP_CID_SIGNALING     0x0001
162
165
#define L2CAP_CID_CONN_LESS     0x0002
 
166
#define L2CAP_CID_LE_DATA       0x0004
 
167
#define L2CAP_CID_LE_SIGNALING  0x0005
 
168
#define L2CAP_CID_SMP           0x0006
163
169
#define L2CAP_CID_DYN_START     0x0040
164
170
#define L2CAP_CID_DYN_END       0xffff
165
171
 
255
261
#define L2CAP_IR_SUCCESS    0x0000
256
262
#define L2CAP_IR_NOTSUPP    0x0001
257
263
 
 
264
struct l2cap_conn_param_update_req {
 
265
        __le16      min;
 
266
        __le16      max;
 
267
        __le16      latency;
 
268
        __le16      to_multiplier;
 
269
} __packed;
 
270
 
 
271
struct l2cap_conn_param_update_rsp {
 
272
        __le16      result;
 
273
} __packed;
 
274
 
 
275
/* Connection Parameters result */
 
276
#define L2CAP_CONN_PARAM_ACCEPTED       0x0000
 
277
#define L2CAP_CONN_PARAM_REJECTED       0x0001
 
278
 
258
279
/* ----- L2CAP connections ----- */
259
280
struct l2cap_chan_list {
260
281
        struct sock     *head;
327
348
        __u8            sec_level;
328
349
        __u8            role_switch;
329
350
        __u8            force_reliable;
 
351
        __u8            flushable;
330
352
 
331
353
        __u8            conf_req[64];
332
354
        __u8            conf_len;
423
445
#define __is_sframe(ctrl)       ((ctrl) & L2CAP_CTRL_FRAME_TYPE)
424
446
#define __is_sar_start(ctrl)    (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START)
425
447
 
426
 
void l2cap_load(void);
 
448
extern int disable_ertm;
 
449
extern const struct proto_ops l2cap_sock_ops;
 
450
extern struct bt_sock_list l2cap_sk_list;
 
451
 
 
452
int l2cap_init_sockets(void);
 
453
void l2cap_cleanup_sockets(void);
 
454
 
 
455
u8 l2cap_get_ident(struct l2cap_conn *conn);
 
456
void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data);
 
457
int l2cap_build_conf_req(struct sock *sk, void *data);
 
458
int __l2cap_wait_ack(struct sock *sk);
 
459
 
 
460
struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len);
 
461
struct sk_buff *l2cap_create_basic_pdu(struct sock *sk, struct msghdr *msg, size_t len);
 
462
struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *msg, size_t len, u16 control, u16 sdulen);
 
463
int l2cap_sar_segment_sdu(struct sock *sk, struct msghdr *msg, size_t len);
 
464
void l2cap_do_send(struct sock *sk, struct sk_buff *skb);
 
465
void l2cap_streaming_send(struct sock *sk);
 
466
int l2cap_ertm_send(struct sock *sk);
 
467
 
 
468
void l2cap_sock_set_timer(struct sock *sk, long timeout);
 
469
void l2cap_sock_clear_timer(struct sock *sk);
 
470
void __l2cap_sock_close(struct sock *sk, int reason);
 
471
void l2cap_sock_kill(struct sock *sk);
 
472
void l2cap_sock_init(struct sock *sk, struct sock *parent);
 
473
struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
 
474
                                                        int proto, gfp_t prio);
 
475
void l2cap_send_disconn_req(struct l2cap_conn *conn, struct sock *sk, int err);
 
476
void l2cap_chan_del(struct sock *sk, int err);
 
477
int l2cap_do_connect(struct sock *sk);
427
478
 
428
479
#endif /* __L2CAP_H */