User applications are forced to define the SOL_TLS manually at the moment, which is inappropriate. Add SOL_TLS to the uapi.
Other protocols handle this similarly. For example see SOL_TIPC. Signed-off-by: Boris Pismenny <bor...@mellanox.com> --- v1: update commit message --- include/uapi/linux/tls.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/tls.h b/include/uapi/linux/tls.h index 401d6f0..000a99e 100644 --- a/include/uapi/linux/tls.h +++ b/include/uapi/linux/tls.h @@ -36,6 +36,10 @@ #include <linux/types.h> +#ifndef SOL_TLS +#define SOL_TLS 282 +#endif + /* TLS socket options */ #define TLS_TX 1 /* Set transmit parameters */ #define TLS_RX 2 /* Set receive parameters */ -- 1.8.3.1