mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#26907: add some missing getsockopt constants.
Patch by Christian Heimes, reviewed by Martin Panter.
This commit is contained in:
parent
d44500cc29
commit
bdfa0ebff7
3 changed files with 20 additions and 0 deletions
|
@ -6582,6 +6582,12 @@ PyInit__socket(void)
|
|||
#ifdef LOCAL_PEERCRED
|
||||
PyModule_AddIntMacro(m, LOCAL_PEERCRED);
|
||||
#endif
|
||||
#ifdef SO_PASSSEC
|
||||
PyModule_AddIntMacro(m, SO_PASSSEC);
|
||||
#endif
|
||||
#ifdef SO_PEERSEC
|
||||
PyModule_AddIntMacro(m, SO_PEERSEC);
|
||||
#endif
|
||||
#ifdef SO_BINDTODEVICE
|
||||
PyModule_AddIntMacro(m, SO_BINDTODEVICE);
|
||||
#endif
|
||||
|
@ -6591,6 +6597,12 @@ PyInit__socket(void)
|
|||
#ifdef SO_MARK
|
||||
PyModule_AddIntMacro(m, SO_MARK);
|
||||
#endif
|
||||
#ifdef SO_DOMAIN
|
||||
PyModule_AddIntMacro(m, SO_DOMAIN);
|
||||
#endif
|
||||
#ifdef SO_PROTOCOL
|
||||
PyModule_AddIntMacro(m, SO_PROTOCOL);
|
||||
#endif
|
||||
|
||||
/* Maximum number of connections for "listen" */
|
||||
#ifdef SOMAXCONN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue