netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/2]  Use correct sk->sk_prot for IPV6
@ 2017-09-04 10:13 Ilya Lesokhin
  2017-09-04 10:14 ` [PATCH v3 net-next 1/2] net: Export tcpv6_prot Ilya Lesokhin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ilya Lesokhin @ 2017-09-04 10:13 UTC (permalink / raw)
  To: netdev, davem; +Cc: davejwatson, aviadye, Ilya Lesokhin

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. 

Changed since v2: 
- Dropped patch to fix IPV6_ADDRFORM setsockopt
There was some disagreement about the correct way of fixinig it,
and this series does not depend on it.

Changes since v1:                                                                
- TLS now dependes on IPV6                                                       
This fixes complication issues when TLS is built-in and IPV6 is a module.        
The downside should be small as it is unlikely that there are kernel TLS         
users who can't afford to include IPV6 in thier kernel.                          
- tls_init now checks sk->sk_prot directly                                       
This is somewhat safer then checking indirectly through sk->sk_family       

Ilya Lesokhin (2):
  net: Export tcpv6_prot
  tls: Use correct sk->sk_prot for IPV6

 net/ipv6/tcp_ipv6.c |  1 +
 net/tls/Kconfig     |  1 +
 net/tls/tls_main.c  | 50 ++++++++++++++++++++++++++++++++++++++------------
 3 files changed, 40 insertions(+), 12 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-27  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-04 10:13 [PATCH v3 net-next 0/2] Use correct sk->sk_prot for IPV6 Ilya Lesokhin
2017-09-04 10:14 ` [PATCH v3 net-next 1/2] net: Export tcpv6_prot Ilya Lesokhin
2017-09-04 10:14 ` [PATCH v3 net-next 2/2] tls: Use correct sk->sk_prot for IPV6 Ilya Lesokhin
2018-02-23 21:52   ` [v3,net-next,2/2] " Guenter Roeck
2018-02-27  7:49     ` Boris Pismenny
2017-09-05 21:38 ` [PATCH v3 net-next 0/2] " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).