summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-08-24 01:12:40 (GMT)
committerR David Murray <rdmurray@bitdance.com>2016-08-24 01:12:40 (GMT)
commitbdfa0ebff797b0a93eabe253f8a77a5e9d5f8dc1 (patch)
treec5a68de9ba1aee4ee15d197c1d0e785101f2afc4 /Modules/socketmodule.c
parentd44500cc291930cdda9f1b0636e85df2162c4bfd (diff)
downloadcpython-bdfa0ebff797b0a93eabe253f8a77a5e9d5f8dc1.zip
cpython-bdfa0ebff797b0a93eabe253f8a77a5e9d5f8dc1.tar.gz
cpython-bdfa0ebff797b0a93eabe253f8a77a5e9d5f8dc1.tar.bz2
#26907: add some missing getsockopt constants.
Patch by Christian Heimes, reviewed by Martin Panter.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index d21509e..d896cc0 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -6582,6 +6582,12 @@ PyInit__socket(void)
#ifdef LOCAL_PEERCRED
PyModule_AddIntMacro(m, LOCAL_PEERCRED);
#endif
+#ifdef SO_PASSSEC
+ PyModule_AddIntMacro(m, SO_PASSSEC);
+#endif
+#ifdef SO_PEERSEC
+ PyModule_AddIntMacro(m, SO_PEERSEC);
+#endif
#ifdef SO_BINDTODEVICE
PyModule_AddIntMacro(m, SO_BINDTODEVICE);
#endif
@@ -6591,6 +6597,12 @@ PyInit__socket(void)
#ifdef SO_MARK
PyModule_AddIntMacro(m, SO_MARK);
#endif
+#ifdef SO_DOMAIN
+ PyModule_AddIntMacro(m, SO_DOMAIN);
+#endif
+#ifdef SO_PROTOCOL
+ PyModule_AddIntMacro(m, SO_PROTOCOL);
+#endif
/* Maximum number of connections for "listen" */
#ifdef SOMAXCONN