Blame python-2.7rc1-socketmodule-constants.patch

c6247f
--- Python-2.7rc1/Modules/socketmodule.c.socketmodule	2010-05-09 10:46:46.000000000 -0400
c6247f
+++ Python-2.7rc1/Modules/socketmodule.c	2010-06-07 23:04:19.374234780 -0400
c6247f
@@ -4783,6 +4783,61 @@ init_socket(void)
c6247f
     PyModule_AddIntConstant(m, "SO_SETFIB", SO_SETFIB);
b7ef3f
 #endif
c6247f
 
b7ef3f
+#ifdef	SO_SNDBUFFORCE
c6247f
+    PyModule_AddIntConstant(m, "SO_SNDBUFFORCE", SO_SNDBUFFORCE);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_RCVBUFFORCE
c6247f
+    PyModule_AddIntConstant(m, "SO_RCVBUFFORCE", SO_RCVBUFFORCE);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_NO_CHECK
c6247f
+    PyModule_AddIntConstant(m, "SO_NO_CHECK", SO_NO_CHECK);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_PRIORITY
c6247f
+    PyModule_AddIntConstant(m, "SO_PRIORITY", SO_PRIORITY);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_BSDCOMPAT
c6247f
+    PyModule_AddIntConstant(m, "SO_BSDCOMPAT", SO_BSDCOMPAT);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_PASSCRED
c6247f
+    PyModule_AddIntConstant(m, "SO_PASSCRED", SO_PASSCRED);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_PEERCRED
c6247f
+    PyModule_AddIntConstant(m, "SO_PEERCRED", SO_PEERCRED);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_SECURITY_AUTHENTICATION
c6247f
+    PyModule_AddIntConstant(m, "SO_SECURITY_AUTHENTICATION", SO_SECURITY_AUTHENTICATION);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_SECURITY_ENCRYPTION_TRANSPORT
c6247f
+    PyModule_AddIntConstant(m, "SO_SECURITY_ENCRYPTION_TRANSPORT", SO_SECURITY_ENCRYPTION_TRANSPORT);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_SECURITY_ENCRYPTION_NETWORK
c6247f
+    PyModule_AddIntConstant(m, "SO_SECURITY_ENCRYPTION_NETWORK", SO_SECURITY_ENCRYPTION_NETWORK);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_BINDTODEVICE
c6247f
+    PyModule_AddIntConstant(m, "SO_BINDTODEVICE", SO_BINDTODEVICE);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_ATTACH_FILTER
c6247f
+    PyModule_AddIntConstant(m, "SO_ATTACH_FILTER", SO_ATTACH_FILTER);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_DETACH_FILTER
c6247f
+    PyModule_AddIntConstant(m, "SO_DETACH_FILTER", SO_DETACH_FILTER);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_PEERNAME
c6247f
+    PyModule_AddIntConstant(m, "SO_PEERNAME", SO_PEERNAME);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_TIMESTAMP
c6247f
+    PyModule_AddIntConstant(m, "SO_TIMESTAMP", SO_TIMESTAMP);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_PEERSEC
c6247f
+    PyModule_AddIntConstant(m, "SO_PEERSEC", SO_PEERSEC);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_PASSSEC
c6247f
+    PyModule_AddIntConstant(m, "SO_PASSSEC", SO_PASSSEC);
b7ef3f
+#endif
b7ef3f
+#ifdef	SO_TIMESTAMPNS
c6247f
+    PyModule_AddIntConstant(m, "SO_TIMESTAMPNS", SO_TIMESTAMPNS);
b7ef3f
+#endif
c6247f
+
c6247f
     /* Maximum number of connections for "listen" */
c6247f
 #ifdef  SOMAXCONN
c6247f
     PyModule_AddIntConstant(m, "SOMAXCONN", SOMAXCONN);