Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2011 18:40:44 +0100
From:      =?iso-8859-1?Q?Michael_T=FCxen?= <Michael.Tuexen@lurchi.franken.de>
To:        jyl_2006 <yilinjing2006@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: the return value of sctp_connectx do not match any error
Message-ID:  <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de>
In-Reply-To: <1322919283456-5044536.post@n5.nabble.com>
References:  <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <C6A45788-E86B-4825-A4A6-2859B74D110B@lurchi.franken.de> <1322919283456-5044536.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 3, 2011, at 2:34 PM, jyl_2006 wrote:

> Hi, Michael
> The problem about sctp_connectx is solved.Thank you very much.
>=20
> 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
>=20
> My function is:
> struct sockaddr    *show_ip_address =3D NULL;
> sctp_getladdrs(_sctp_socket, _sctp_associd, &show_ip_address);
>=20
>=20
>=20
> --
> 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-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76108404-D722-48D0-AAAA-F35B77F5CFCF>