提交 8450d0c7 编写于 作者: M Matt Caswell

Fix KTLS compilation error

If the kernel headers are sufficiently recent to have KTLS transmit
support, but not recent enough to have KTLS receive support then a
compilation error would be the result.
Reviewed-by: NPaul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8793)
上级 514c9da4
...@@ -90,6 +90,10 @@ static ossl_inline int ktls_read_record(int fd, void *data, size_t length) ...@@ -90,6 +90,10 @@ static ossl_inline int ktls_read_record(int fd, void *data, size_t length)
# define TCP_ULP 31 # define TCP_ULP 31
# endif # endif
# ifndef TLS_RX
# define TLS_RX 2
# endif
/* /*
* When successful, this socket option doesn't change the behaviour of the * When successful, this socket option doesn't change the behaviour of the
* TCP socket, except changing the TCP setsockopt handler to enable the * TCP socket, except changing the TCP setsockopt handler to enable the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册