mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106)
This commit is contained in:
parent
a0401d8372
commit
1aa6be06c4
2 changed files with 4 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
Expose Linux's ``IP_BIND_ADDRESS_NO_PORT`` option in :mod:`socket`.
|
|
@ -8072,6 +8072,9 @@ PyInit__socket(void)
|
||||||
#ifdef IP_TRANSPARENT
|
#ifdef IP_TRANSPARENT
|
||||||
PyModule_AddIntMacro(m, IP_TRANSPARENT);
|
PyModule_AddIntMacro(m, IP_TRANSPARENT);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef IP_BIND_ADDRESS_NO_PORT
|
||||||
|
PyModule_AddIntMacro(m, IP_BIND_ADDRESS_NO_PORT);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
|
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
|
||||||
#ifdef IPV6_JOIN_GROUP
|
#ifdef IPV6_JOIN_GROUP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue