summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2020-10-29 08:04:59 +0100
committerJakub Kicinski <kuba@kernel.org>2020-10-30 23:23:56 +0100
commit9d6ba260a0734d5e56243929a69d57ebbf0cb245 (patch)
tree5cc755b4df52f83a869f3b6a345f9de6c903ff3d /include/net/netns
parentsctp: create udp4 sock and add its encap_rcv (diff)
downloadlinux-9d6ba260a0734d5e56243929a69d57ebbf0cb245.tar.xz
linux-9d6ba260a0734d5e56243929a69d57ebbf0cb245.zip
sctp: create udp6 sock and set its encap_rcv
This patch is to add the udp6 sock part in sctp_udp_sock_start/stop(). udp_conf.use_udp6_rx_checksums is set to true, as: "The SCTP checksum MUST be computed for IPv4 and IPv6, and the UDP checksum SHOULD be computed for IPv4 and IPv6" says in rfc6951#section-5.3. v1->v2: - Add pr_err() when fails to create udp v6 sock. - Add #if IS_ENABLED(CONFIG_IPV6) not to create v6 sock when ipv6 is disabled. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/sctp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h
index 8cc9aff24329..247b401a0f52 100644
--- a/include/net/netns/sctp.h
+++ b/include/net/netns/sctp.h
@@ -24,6 +24,7 @@ struct netns_sctp {
/* UDP tunneling listening sock. */
struct sock *udp4_sock;
+ struct sock *udp6_sock;
/* UDP tunneling listening port. */
int udp_port;