mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
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>
This commit is contained in:
parent
ed63afb8a3
commit
2c0dbaa0c4
3 changed files with 84 additions and 0 deletions
|
@ -308,6 +308,12 @@ typedef enum sctp_cmsg_type {
|
|||
#define SCTP_NXTINFO SCTP_NXTINFO
|
||||
SCTP_PRINFO, /* 5.3.7 SCTP PR-SCTP Information Structure */
|
||||
#define SCTP_PRINFO SCTP_PRINFO
|
||||
SCTP_AUTHINFO, /* 5.3.8 SCTP AUTH Information Structure (RESERVED) */
|
||||
#define SCTP_AUTHINFO SCTP_AUTHINFO
|
||||
SCTP_DSTADDRV4, /* 5.3.9 SCTP Destination IPv4 Address Structure */
|
||||
#define SCTP_DSTADDRV4 SCTP_DSTADDRV4
|
||||
SCTP_DSTADDRV6, /* 5.3.10 SCTP Destination IPv6 Address Structure */
|
||||
#define SCTP_DSTADDRV6 SCTP_DSTADDRV6
|
||||
} sctp_cmsg_t;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue