]> 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)
commit9f9cf2add628abc69e12eada1f539deeeb70b35a
tree11689ed41ccf7d6558d340b875156fe07fa80293
parent1b1d450868619516e20eef153f99603876747595
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: c2c217d10788 ('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