closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106)

This commit is contained in:
Benjamin Peterson 2022-02-03 10:46:50 -08:00 committed by GitHub
parent a0401d8372
commit 1aa6be06c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Expose Linux's ``IP_BIND_ADDRESS_NO_PORT`` option in :mod:`socket`.

View File

@ -8072,6 +8072,9 @@ PyInit__socket(void)
#ifdef IP_TRANSPARENT
PyModule_AddIntMacro(m, IP_TRANSPARENT);
#endif
#ifdef IP_BIND_ADDRESS_NO_PORT
PyModule_AddIntMacro(m, IP_BIND_ADDRESS_NO_PORT);
#endif
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
#ifdef IPV6_JOIN_GROUP