the return value of sctp_connectx do not match any error
Michael Tüxen
Michael.Tuexen at lurchi.franken.de
Sat Dec 3 17:40:48 UTC 2011
On Dec 3, 2011, at 2:34 PM, jyl_2006 wrote:
> Hi, Michael
> The problem about sctp_connectx is solved.Thank you very much.
>
> But I encounter another problem, it's about sctp_getladdrs().Every time I
> call this function, the return value is "ENOMEM". Even I reboot the
> computer, this problem still exists.
The return value is the number of addresses, not an error code. So if it
returns ENOMEM, it means that your endpoint has 12 addresses. Or does it
return -1 and errno is set to ENOMEM?
Best regards
Michael
>
> My function is:
> struct sockaddr *show_ip_address = NULL;
> sctp_getladdrs(_sctp_socket, _sctp_associd, &show_ip_address);
>
>
>
> --
> View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5044536.html
> Sent from the freebsd-net mailing list archive at Nabble.com.
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
More information about the freebsd-net
mailing list