• M
    Bluetooth: Add CID field to L2CAP socket address structure · f29972de
    Marcel Holtmann 提交于
    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: NMarcel Holtmann <marcel@holtmann.org>
    f29972de
l2cap.h 5.9 KB