summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:45:48 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:45:48 (GMT)
commitcb98bed2992022d85d456c146a956e248be04000 (patch)
tree481352e2dab6de44358992eff3596392d60fb703 /Modules/socketmodule.c
parent8b905bd9d40f0545e054737b8796a18366546ffc (diff)
downloadcpython-cb98bed2992022d85d456c146a956e248be04000.zip
cpython-cb98bed2992022d85d456c146a956e248be04000.tar.gz
cpython-cb98bed2992022d85d456c146a956e248be04000.tar.bz2
Issue #12619: Expose socket.SO_BINDTODEVICE constant
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 3618df1..c930ed3 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5772,6 +5772,9 @@ PyInit__socket(void)
#ifdef LOCAL_PEERCRED
PyModule_AddIntConstant(m, "LOCAL_PEERCRED", LOCAL_PEERCRED);
#endif
+#ifdef SO_BINDTODEVICE
+ PyModule_AddIntMacro(m, SO_BINDTODEVICE);
+#endif
/* Maximum number of connections for "listen" */
#ifdef SOMAXCONN