[Python-checkins] cpython: Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by Michael

charles-francois.natali python-checkins at python.org
Sat Dec 17 15:01:34 CET 2011


http://hg.python.org/cpython/rev/59ea1d1a4137
changeset:   74012:59ea1d1a4137
user:        Charles-François Natali <neologix at free.fr>
date:        Sat Dec 17 14:59:56 2011 +0100
summary:
  Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by Michael
Farrell.

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


diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -304,6 +304,7 @@
 Clovis Fabricio
 Andreas Faerber
 Bill Fancher
+Michael Farrell
 Troy J. Farrell
 Mark Favas
 Boris Feld
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -6192,6 +6192,9 @@
 #ifdef  IP_MAX_MEMBERSHIPS
     PyModule_AddIntConstant(m, "IP_MAX_MEMBERSHIPS", IP_MAX_MEMBERSHIPS);
 #endif
+#ifdef  IP_TRANSPARENT
+    PyModule_AddIntConstant(m, "IP_TRANSPARENT", IP_TRANSPARENT);
+#endif
 
     /* IPv6 [gs]etsockopt options, defined in RFC2553 */
 #ifdef  IPV6_JOIN_GROUP

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


More information about the Python-checkins mailing list