From 9d85aba9e245c1a0f6d1879f8bc6c260cb4eb721 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 9 May 2022 00:19:41 +0100 Subject: 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 --- Modules/socketmodule.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Modules/socketmodule.c') diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 9aefa443c7..f376513fea 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 -- cgit v1.2.1