summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2022-02-03 10:46:50 -0800
committerGitHub <noreply@github.com>2022-02-03 10:46:50 -0800
commit1aa6be06c4cb7f04a340adb1c7b16b89803ef254 (patch)
tree24cdc9026a2b31f9dff95bf2e4c87a5d6ded2c3d /Modules/socketmodule.c
parenta0401d83720d93cd95ddf25f86874bfbee528722 (diff)
downloadcpython-git-1aa6be06c4cb7f04a340adb1c7b16b89803ef254.tar.gz
closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106)
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 1c8ef1eb3b..3fca9f6851 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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