sctp: add support for setting flowlabel when adding a transport
authorXin Long <lucien.xin@gmail.com>
Mon, 2 Jul 2018 10:21:14 +0000 (18:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 02:36:54 +0000 (11:36 +0900)
commit4be4139f7d0dc74e5a0932c7c7ddf0eb65da9e3a
tree1392503fedca83a4bcab9f87eda38832686dc0a7
parent0b0dce7a36fb9f1a9dd8245ea82d3a268c6943fe
sctp: add support for setting flowlabel when adding a transport

Struct sockaddr_in6 has the member sin6_flowinfo that includes the
ipv6 flowlabel, it should also support for setting flowlabel when
adding a transport whose ipaddr is from userspace.

Note that addrinfo in sctp_sendmsg is using struct in6_addr for
the secondary addrs, which doesn't contain sin6_flowinfo, and
it needs to copy sin6_flowinfo from the primary addr.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/associola.c
net/sctp/socket.c