summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-10-03 13:56:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-10-03 13:56:20 (GMT)
commita0f1734e447aa8106d96253ebb73a4a618ec41d8 (patch)
tree77f1b17f8d383c4ae79cee4fde5888f49f7ef4ce
parent76bafc64ce10b986a9de2db19fc4c72662c31e6b (diff)
downloadcpython-a0f1734e447aa8106d96253ebb73a4a618ec41d8.zip
cpython-a0f1734e447aa8106d96253ebb73a4a618ec41d8.tar.gz
cpython-a0f1734e447aa8106d96253ebb73a4a618ec41d8.tar.bz2
Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3.
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 36b4b3d..8fd5963 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3749,6 +3749,9 @@ init_socket(void)
#ifdef IPPROTO_IPV4
PyModule_AddIntConstant(m, "IPPROTO_IPV4", IPPROTO_IPV4);
#endif
+#ifdef IPPROTO_IPV6
+ PyModule_AddIntConstant(m, "IPPROTO_IPV6", IPPROTO_IPV6);
+#endif
#ifdef IPPROTO_IPIP
PyModule_AddIntConstant(m, "IPPROTO_IPIP", IPPROTO_IPIP);
#endif