diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-04-27 23:17:19 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-04-27 23:17:19 +0000 |
commit | f1f93475463891194c453aff5f7c872fa9109b45 (patch) | |
tree | 96c3a00abf0c646544c443cf7a4ced5dae445568 /sys/netinet/tcp_usrreq.c | |
parent | ec1db6e13db4d5cffa7fadc42519f9bc4315eaee (diff) | |
download | src-test2-f1f93475463891194c453aff5f7c872fa9109b45.tar.gz src-test2-f1f93475463891194c453aff5f7c872fa9109b45.zip |
Notes
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 670345d62346..d1eb34e49ec4 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -2080,6 +2080,14 @@ unlock_and_done: error = ktls_set_tx_mode(so, ui); INP_WUNLOCK(inp); break; + case TCP_RXTLS_ENABLE: + INP_WUNLOCK(inp); + error = sooptcopyin(sopt, &tls, sizeof(tls), + sizeof(tls)); + if (error) + break; + error = ktls_enable_rx(so, &tls); + break; #endif case TCP_KEEPIDLE: @@ -2418,6 +2426,11 @@ unhold: INP_WUNLOCK(inp); error = sooptcopyout(sopt, &optval, sizeof(optval)); break; + case TCP_RXTLS_MODE: + optval = ktls_get_rx_mode(so); + INP_WUNLOCK(inp); + error = sooptcopyout(sopt, &optval, sizeof(optval)); + break; #endif default: INP_WUNLOCK(inp); |