Those are somewhat equivalent to Linux' SO_MARK.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Added ``TCP_CONNECTION_INFO``. On MacOS this constant can be used in the
same way that ``TCP_INFO`` is used on Linux and BSD.
+ .. versionchanged:: 3.12
+ Added ``SO_RTABLE`` and ``SO_USER_COOKIE``. On OpenBSD
+ and FreeBSD respectively those constants can be used in the same way that
+ ``SO_MARK`` is used on Linux.
+
.. data:: AF_CAN
PF_CAN
SOL_CAN_*
--- /dev/null
+Add ``SO_RTABLE`` and ``SO_USER_COOKIE`` constants to :mod:`socket`.
#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