• Marcel Holtmann's avatar
    Bluetooth: Add CID field to L2CAP socket address structure · f29972de
    Marcel Holtmann authored
    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: default avatarMarcel Holtmann <marcel@holtmann.org>
    f29972de
l2cap.h 5.88 KB