]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129288: Add optional l2_cid and l2_bdaddr_type in BTPROTO_L2CAP socket address...
authorFredrik Ahlberg <fredrik@z80.se>
Thu, 27 Feb 2025 12:51:47 +0000 (13:51 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2025 12:51:47 +0000 (12:51 +0000)
commit45a24f54af4a65c14cc15fc13d3258726e2fe73b
tree6bc623c51bfbb7182aec65901f8334ee078ff46c
parenta083633fa046386b8cdaae0c87fef25289dde9a1
gh-129288: Add optional l2_cid and l2_bdaddr_type in BTPROTO_L2CAP socket address tuple (#129293)

Add two optional, traling elements in the AF_BLUETOOTH socket address tuple:

- l2_cid, to allow e.g raw LE ATT connections
- l2_bdaddr_type. To be able to connect L2CAP sockets to Bluetooth LE devices,
  the l2_bdaddr_type must be set to BDADDR_LE_PUBLIC or BDADDR_LE_RANDOM.
Doc/library/socket.rst
Lib/test/test_socket.py
Misc/NEWS.d/next/Library/2025-01-26-15-35-53.gh-issue-129288.wB3uxU.rst [new file with mode: 0644]
Modules/socketmodule.c