mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-91968: Add socket constants SO_USER_COOKIE/SO_RTABLE from BSD (#91967)
Those are somewhat equivalent to Linux' SO_MARK. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
859250cc55
commit
9d85aba9e2
3 changed files with 12 additions and 0 deletions
|
@ -7595,6 +7595,12 @@ PyInit__socket(void)
|
|||
#ifdef SO_MARK
|
||||
PyModule_AddIntMacro(m, SO_MARK);
|
||||
#endif
|
||||
#ifdef SO_USER_COOKIE
|
||||
PyModule_AddIntMacro(m, SO_USER_COOKIE);
|
||||
#endif
|
||||
#ifdef SO_RTABLE
|
||||
PyModule_AddIntMacro(m, SO_RTABLE);
|
||||
#endif
|
||||
#ifdef SO_DOMAIN
|
||||
PyModule_AddIntMacro(m, SO_DOMAIN);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue