]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - python/patches/python-2.7rc1-socketmodule-constants.patch
python: Update to 2.7.5.
[people/ms/ipfire-3.x.git] / python / patches / python-2.7rc1-socketmodule-constants.patch
1 --- Python-2.7rc1/Modules/socketmodule.c.socketmodule 2010-05-09 10:46:46.000000000 -0400
2 +++ Python-2.7rc1/Modules/socketmodule.c 2010-06-07 23:04:19.374234780 -0400
3 @@ -4783,6 +4783,61 @@ init_socket(void)
4 PyModule_AddIntConstant(m, "SO_SETFIB", SO_SETFIB);
5 #endif
6
7 +#ifdef SO_SNDBUFFORCE
8 + PyModule_AddIntConstant(m, "SO_SNDBUFFORCE", SO_SNDBUFFORCE);
9 +#endif
10 +#ifdef SO_RCVBUFFORCE
11 + PyModule_AddIntConstant(m, "SO_RCVBUFFORCE", SO_RCVBUFFORCE);
12 +#endif
13 +#ifdef SO_NO_CHECK
14 + PyModule_AddIntConstant(m, "SO_NO_CHECK", SO_NO_CHECK);
15 +#endif
16 +#ifdef SO_PRIORITY
17 + PyModule_AddIntConstant(m, "SO_PRIORITY", SO_PRIORITY);
18 +#endif
19 +#ifdef SO_BSDCOMPAT
20 + PyModule_AddIntConstant(m, "SO_BSDCOMPAT", SO_BSDCOMPAT);
21 +#endif
22 +#ifdef SO_PASSCRED
23 + PyModule_AddIntConstant(m, "SO_PASSCRED", SO_PASSCRED);
24 +#endif
25 +#ifdef SO_PEERCRED
26 + PyModule_AddIntConstant(m, "SO_PEERCRED", SO_PEERCRED);
27 +#endif
28 +#ifdef SO_SECURITY_AUTHENTICATION
29 + PyModule_AddIntConstant(m, "SO_SECURITY_AUTHENTICATION", SO_SECURITY_AUTHENTICATION);
30 +#endif
31 +#ifdef SO_SECURITY_ENCRYPTION_TRANSPORT
32 + PyModule_AddIntConstant(m, "SO_SECURITY_ENCRYPTION_TRANSPORT", SO_SECURITY_ENCRYPTION_TRANSPORT);
33 +#endif
34 +#ifdef SO_SECURITY_ENCRYPTION_NETWORK
35 + PyModule_AddIntConstant(m, "SO_SECURITY_ENCRYPTION_NETWORK", SO_SECURITY_ENCRYPTION_NETWORK);
36 +#endif
37 +#ifdef SO_BINDTODEVICE
38 + PyModule_AddIntConstant(m, "SO_BINDTODEVICE", SO_BINDTODEVICE);
39 +#endif
40 +#ifdef SO_ATTACH_FILTER
41 + PyModule_AddIntConstant(m, "SO_ATTACH_FILTER", SO_ATTACH_FILTER);
42 +#endif
43 +#ifdef SO_DETACH_FILTER
44 + PyModule_AddIntConstant(m, "SO_DETACH_FILTER", SO_DETACH_FILTER);
45 +#endif
46 +#ifdef SO_PEERNAME
47 + PyModule_AddIntConstant(m, "SO_PEERNAME", SO_PEERNAME);
48 +#endif
49 +#ifdef SO_TIMESTAMP
50 + PyModule_AddIntConstant(m, "SO_TIMESTAMP", SO_TIMESTAMP);
51 +#endif
52 +#ifdef SO_PEERSEC
53 + PyModule_AddIntConstant(m, "SO_PEERSEC", SO_PEERSEC);
54 +#endif
55 +#ifdef SO_PASSSEC
56 + PyModule_AddIntConstant(m, "SO_PASSSEC", SO_PASSSEC);
57 +#endif
58 +#ifdef SO_TIMESTAMPNS
59 + PyModule_AddIntConstant(m, "SO_TIMESTAMPNS", SO_TIMESTAMPNS);
60 +#endif
61 +
62 /* Maximum number of connections for "listen" */
63 #ifdef SOMAXCONN
64 PyModule_AddIntConstant(m, "SOMAXCONN", SOMAXCONN);