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

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