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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
> 

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to