← 输入框|bugs.python.org|刷新

➜

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.

classification
标题: sockaddr_l2 lacks CID, address type (AF_BLUETOOTH sockets)
类型: behavior Stage:
Components: Extension Modules, Library (Lib) Versions: Python 2.7
process
状态: open Resolution:
Dependencies: 后续:
分配给: 抄送列表: mikeryan, vstinner
优先级: normal 关键字:

mikeryan 于 2015-12-26 19:35 创建。最近一次由 admin 于 2022-04-11 14:58 修改。

Messages (2)
msg257043 - (view) Author: Mike Ryan (mikeryan) 日期: 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:

https://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=3de95535
https://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=ba801fcd

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

https://git.kernel.org/cgit/bluetooth/bluez.git/tree/lib/l2cap.h?id=1b9e48f4#n40

The Python code in question can be found here:

https://github.com/python/cpython/blob/4f9794dbcaa6ee7ddc6ab175a57e7f01ebe64353/Modules/socketmodule.c#L1108
msg257120 - (view) Author: Mike Ryan (mikeryan) 日期: 2015-12-28 17:40
AF_BLUETOOTH also lacks support for hci_channel in sockaddr_hci for BTPROTO_HCI sockets:

https://git.kernel.org/cgit/bluetooth/bluez.git/tree/lib/hci.h?h=5.37#n2340

This feature has been present in BlueZ since 2010:

https://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=12d02e7f

(Note that the latest BlueZ release includes a total of five different channels that should be supported)
历史
日期 用户 动作 参数
2022-04-11 14:58:25admin修改github: 70145
2021-06-01 09:20:35steve.dower修改抄送: - steve.dower
2021-05-28 19:06:54iritkatriel修改抄送: + steve.dower
2016-01-14 18:29:20SilentGhost修改抄送: + vstinner
components: + Library (Lib)
2015-12-28 17:40:41mikeryan修改消息: + msg257120
2015-12-26 19:35:41mikeryan创建