Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 74012:59ea1d1a4137
Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by Michael
Farrell.
| author | Charles-François Natali <neologix@free.fr> |
|---|---|
| date | Sat, 17 Dec 2011 14:59:56 +0100 |
| parents | 51412b4b81ae |
| children | 683a1b1ff15d |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat Dec 17 08:02:20 2011 -0500 +++ b/Modules/socketmodule.c Sat Dec 17 14:59:56 2011 +0100 @@ -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
