mirror of https://github.com/python/cpython
closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106)
This commit is contained in:
parent
a0401d8372
commit
1aa6be06c4
|
@ -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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue