sctp: add support for SCTP_DSTADDRV4/6 Information for sendmsg
authorXin Long <lucien.xin@gmail.com>
Mon, 5 Mar 2018 12:44:19 +0000 (20:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 15:55:29 +0000 (10:55 -0500)
commit2c0dbaa0c43d04d8d6daf52adb724c5789676b15
tree25131ece7f234a780ca62789f1028c96fa73e06c
parented63afb8a318f6b3558d76afba7809daee4f28e5
sctp: add support for SCTP_DSTADDRV4/6 Information for sendmsg

This patch is to add support for Destination IPv4/6 Address options
for sendmsg, as described in section 5.3.9/10 of RFC6458.

With this option, you can provide more than one destination addrs
to sendmsg when creating asoc, like sctp_connectx.

It's also a necessary send info for sctp_sendv.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
include/uapi/linux/sctp.h
net/sctp/socket.c