[Python-checkins] cpython: Issue #12619: Expose socket.SO_BINDTODEVICE constant

victor.stinner python-checkins at python.org
Tue Oct 25 13:45:50 CEST 2011


http://hg.python.org/cpython/rev/6159311f0f44
changeset:   73128:6159311f0f44
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Tue Oct 25 13:45:48 2011 +0200
summary:
  Issue #12619: Expose socket.SO_BINDTODEVICE constant

files:
  Modules/socketmodule.c |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5772,6 +5772,9 @@
 #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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list