def get_l2cap_options (sock):
<EOL>s = sock.getsockopt (SOL_L2CAP, L2CAP_OPTIONS, <NUM_LIT:12>)<EOL>options = list( struct.unpack ("<STR_LIT>", s))<EOL>return options<EOL>
get_l2cap_options (sock, mtu)

    Gets L2CAP options for the specified L2CAP socket.
    Options are: omtu, imtu, flush_to, mode, fcs, max_tx, txwin_size.