开发者

Can I with SCTP use bindx/SCTP_SOCKOPT_BINDX_ADD after connecting?

开发者 https://www.devze.com 2023-02-10 11:20 出处:网络
When using SCTP, after I have called bind() (but not bindx() / SCTP_SOCKOPT_BINDX_ADD) and after I have called connect(), can I then call bind() or use SCTP_SOCKOPT_BINDX_ADD?

When using SCTP, after I have called bind() (but not bindx() / SCTP_SOCKOPT_BINDX_ADD) and after I have called connect(), can I then call bind() or use SCTP_SOCKOPT_BINDX_ADD?

E.g. -after- connecting, rather than after bindin开发者_StackOverflow中文版g and before connecting, can I add additional local IP addresses (for multi-homing).


RFC said: Adding and removing addresses from a connected association is an optional functionality. Implementations that do not support this functionality should return -1 and set errno to EOPNOTSUPP.

But in linux, you can add/rem additional local ip addr after established connection.

0

精彩评论

暂无评论...
验证码 换一张
取 消