Blame SOURCES/python-2.7rc1-socketmodule-constants.patch

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