This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: sockaddr_l2 lacks CID, address type (AF_BLUETOOTH sockets)
Type: behavior Stage:
Components: Extension Modules, Library (Lib) Versions: Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mikeryan, vstinner
Priority: normal Keywords:

Created on 2015-12-26 19:35 by mikeryan, last changed 2022-04-11 14:58 by admin.

Messages (2)
msg257043 - (view) Author: Mike Ryan (mikeryan) Date: 2015-12-26 19:35
The AF_BLUETOOTH socket type lacks support for specifying CID and address type in sockaddr_l2. These structure members have been present since 2009 and 2012 respectively:

The current version of the full structure can be found here:

The Python code in question can be found here:
msg257120 - (view) Author: Mike Ryan (mikeryan) Date: 2015-12-28 17:40
AF_BLUETOOTH also lacks support for hci_channel in sockaddr_hci for BTPROTO_HCI sockets:

This feature has been present in BlueZ since 2010:

(Note that the latest BlueZ release includes a total of five different channels that should be supported)
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70145
2021-06-01 09:20:35steve.dowersetnosy: - steve.dower
2021-05-28 19:06:54iritkatrielsetnosy: + steve.dower
2016-01-14 18:29:20SilentGhostsetnosy: + vstinner
components: + Library (Lib)
2015-12-28 17:40:41mikeryansetmessages: + msg257120
2015-12-26 19:35:41mikeryancreate