From owner-freebsd-net@FreeBSD.ORG Sat Dec 3 17:40:48 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 049BF1065670 for ; Sat, 3 Dec 2011 17:40:48 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1558FC0C for ; Sat, 3 Dec 2011 17:40:47 +0000 (UTC) Received: from [192.168.1.200] (p508FB63A.dip.t-dialin.net [80.143.182.58]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 736E41C0C0BD8; Sat, 3 Dec 2011 18:40:45 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1322919283456-5044536.post@n5.nabble.com> Date: Sat, 3 Dec 2011 18:40:44 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 17:40:48 -0000 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