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)
commit3dfbc14b57f10ceb1d4c51f1407dd77e7cd25709
tree1392503fedca83a4bcab9f87eda38832686dc0a7
parentd96ab52c50098d8343637e7013b5acb460ebbe3c
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