From 564a42c8decbfe5a18a5ff0b6c496a41740c5a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Fran=C3=A7ois=20Natali?= Date: Sat, 17 Dec 2011 14:59:56 +0100 Subject: Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by Michael Farrell. --- Misc/ACKS | 1 + Modules/socketmodule.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Misc/ACKS b/Misc/ACKS index ce64e20..43d746d 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -304,6 +304,7 @@ Martijn Faassen 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 index 132d6c7..37ae6d8 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -6192,6 +6192,9 @@ PyInit__socket(void) #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 -- cgit v0.12