mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Bluetooth: Add CID field to L2CAP socket address structure
In preparation for L2CAP fixed channel support, the CID value of a L2CAP connection needs to be accessible via the socket interface. The CID is the connection identifier and exists as source and destination value. So extend the L2CAP socket address structure with this field and change getsockname() and getpeername() to fill it in. The bind() and connect() functions have been modified to handle L2CAP socket address structures of variable sizes. This makes them future proof if additional fields need to be added. Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
e1027a7c69
commit
f29972de8e
2 changed files with 35 additions and 21 deletions
|
|
@ -37,6 +37,7 @@ struct sockaddr_l2 {
|
|||
sa_family_t l2_family;
|
||||
__le16 l2_psm;
|
||||
bdaddr_t l2_bdaddr;
|
||||
__le16 l2_cid;
|
||||
};
|
||||
|
||||
/* L2CAP socket options */
|
||||
|
|
|
|||
Loading…
Reference in a new issue