]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Use correct sk->sk_prot for IPV6
authorBoris Pismenny <borisp@mellanox.com>
Tue, 27 Feb 2018 12:18:39 +0000 (14:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:41:48 +0000 (14:41 -0500)
commit54d28167d96102f558dcab2d204e660d6dc38bc7
tree11689ed41ccf7d6558d340b875156fe07fa80293
parentda60c388a177cc5d17cd6f76b4d6d8400ad05926
tls: Use correct sk->sk_prot for IPV6

The tls ulp overrides sk->prot with a new tls specific proto structs.
The tls specific structs were previously based on the ipv4 specific
tcp_prot sturct.
As a result, attaching the tls ulp to an ipv6 tcp socket replaced
some ipv6 callback with the ipv4 equivalents.

This patch adds ipv6 tls proto structs and uses them when
attached to ipv6 sockets.

Fixes: 3a71956a2d9a ('tls: kernel TLS support')
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_main.c