code: def get_l2cap_options (sock):
      
      # TODO this should be in the C module, because it depends
      # directly on struct l2cap_options layout.
      s = sock.getsockopt (SOL_L2CAP, L2CAP_OPTIONS, 12)
      options = list( struct.unpack ("HHHBBBH", s))
      return options
docs: 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.