Skip to content

Commit 1aa6be0

Browse files
authored
closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106)
1 parent a0401d8 commit 1aa6be0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Expose Linux's ``IP_BIND_ADDRESS_NO_PORT`` option in :mod:`socket`.

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8072,6 +8072,9 @@ PyInit__socket(void)
80728072
#ifdef IP_TRANSPARENT
80738073
PyModule_AddIntMacro(m, IP_TRANSPARENT);
80748074
#endif
8075+
#ifdef IP_BIND_ADDRESS_NO_PORT
8076+
PyModule_AddIntMacro(m, IP_BIND_ADDRESS_NO_PORT);
8077+
#endif
80758078

80768079
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
80778080
#ifdef IPV6_JOIN_GROUP

0 commit comments

Comments
 (0)