From owner-freebsd-net@FreeBSD.ORG Fri Dec 2 14:39:10 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 B2B991065673 for ; Fri, 2 Dec 2011 14:39:10 +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 4927B8FC19 for ; Fri, 2 Dec 2011 14:39:10 +0000 (UTC) Received: from [192.168.1.200] (p508F9B37.dip.t-dialin.net [80.143.155.55]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 5CD3E1C0C0BCE; Fri, 2 Dec 2011 15:39:08 +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: <1322834879026-5041952.post@n5.nabble.com> Date: Fri, 2 Dec 2011 15:39:07 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> References: <1322834879026-5041952.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: Fri, 02 Dec 2011 14:39:10 -0000 On Dec 2, 2011, at 3:07 PM, jyl_2006 wrote: > Hi,=20 > I use FreeBSD 9.0 Beta2. > When I use sctp_connectx to init a new association , the return value = of > this function is strange. > The return value is not any of following:1.EINVAL, 2.E2BIG, 3.EBADOF, > 4.ENOTSOCK. Hi, the return value should be 0 (for success) or -1 (in case of an error). Only if -1 is returned, errno is set to an appropriate value. Can you provide a small test program demonstrating the issue? Best regards Michael >=20 > I use perror() function to see detail, it shows that " Resource = temporarily > unavailable". >=20 > Thanks. >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5041952.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