e3fb592b15
Bluetooth: l2cap: fix 1 byte infoleak to userspace
...
Structure l2cap_options has one padding byte between max_tx and
txwin_size fields. This byte in "opts" is copied to userspace
uninitialized.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-11 15:21:29 -02:00
6de0702b5b
Bluetooth: move __l2cap_sock_close() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:46:02 -02:00
05fc1576da
Bluetooth: move l2cap_sock_kill() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:32 -02:00
6ddc0485e1
Bluetooth: move L2CAP sock timers function to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
fd83ccdb39
Bluetooth: move l2cap_sock_sendmsg() to l2cap_sock.c
...
Also moves some L2CAP sending functions declaration to l2cap.h
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
dcba0dba54
Bluetooth: move l2cap_sock_shutdown() to l2cap_sock.c
...
Declare __l2cap_wait_ack() and l2cap_sock_clear_timer() in l2cap.h
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
6898325923
Bluetooth: move l2cap_sock_recvmsg() to l2cap_sock.c
...
It causes the move of the declaration of 3 functions to l2cap.h:
l2cap_get_ident(), l2cap_send_cmd(), l2cap_build_conf_req()
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
4e34c50bfe
Bluetooth: move l2cap_sock_connect() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
99f4808db0
Bluetooth: move l2cap_sock_getsockopt() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
33575df7be
Bluetooth: move l2cap_sock_setsockopt() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:31 -02:00
d7175d5525
Bluetooth: move l2cap_sock_getname() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:30 -02:00
c47b7c724b
Bluetooth: move l2cap_sock_accept() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:30 -02:00
af6bcd8205
Bluetooth: move l2cap_sock_bind()/listen() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:30 -02:00
554f05bb8a
Bluetooth: move l2cap_sock_release() to l2cap_sock.c
...
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:30 -02:00
65390587c7
Bluetooth: move l2cap_sock_ops to l2cap_sock.c
...
First step to move all l2cap_sock_ops function to l2cap_sock.c
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:30 -02:00
bb58f747e5
Bluetooth: Initial work for L2CAP split.
...
This patch tries to do the minimal to move l2cap_sock_create() and its
dependencies to l2cap_sock.c. It create a API to initialize and cleanup
the L2CAP sockets from l2cap_core.c through l2cap_init_sockets() and
l2cap_cleanup_sockets().
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-02-08 01:43:30 -02:00