From owner-freebsd-net@FreeBSD.ORG Mon Sep 26 13:50:52 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 1A32A106566C for ; Mon, 26 Sep 2011 13:50:52 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id EA2998FC18 for ; Mon, 26 Sep 2011 13:50:51 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R8Ba7-0000Fx-BK for freebsd-net@freebsd.org; Mon, 26 Sep 2011 06:50:51 -0700 Date: Mon, 26 Sep 2011 06:50:51 -0700 (PDT) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1317045051344-4841420.post@n5.nabble.com> In-Reply-To: References: <1316871818655-4836594.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: message from sctp getsockopt or sctp_opt_info show 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: Mon, 26 Sep 2011 13:50:52 -0000 I use one wireless card to communicate with another computer,which also has one wireless card. Both two computer does not set any system parameters by using command sysctl . I use a tarball to test and record. In this tarball,computer A use sendmsg() to send a file, and computer B use recvmsg() to receive data from computer A. Both the computer enable subscribe.sctp_data_io_event = 1; subscribe.sctp_association_event = 1; When computer A get data from function recvmsg(), I call getsockopt to get status of association. I set sstat_assoc_id as the value given by sctp_notification, and sctp_opt_info's return value is 0, so I guess it work well. But the results shows the value does not correct. Second time,I use two computer,one computer run with Ubuntu, and the other computer run with FreeBSD 9.0 , in Ubuntu,the result is OK, but in Freebsd ,the result keep same value. So , does something we did wrong or steps I missed? -- View this message in context: http://freebsd.1045724.n5.nabble.com/message-from-sctp-getsockopt-or-sctp-opt-info-show-error-tp4836594p4841420.html Sent from the freebsd-net mailing list archive at Nabble.com.