From owner-freebsd-net@FreeBSD.ORG Thu Sep 6 13:26:34 2007 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 9EE7016A418 for ; Thu, 6 Sep 2007 13:26:34 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-2.cisco.com (sj-iport-2-in.cisco.com [171.71.176.71]) by mx1.freebsd.org (Postfix) with ESMTP id 5A8B113C478 for ; Thu, 6 Sep 2007 13:26:34 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-2.cisco.com with ESMTP; 06 Sep 2007 06:26:35 -0700 X-IronPort-AV: i="4.20,215,1186383600"; d="scan'208"; a="397168758:sNHT73077368" Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-4.cisco.com (8.12.11/8.12.11) with ESMTP id l86DQX1p010465; Thu, 6 Sep 2007 06:26:33 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l86DQOxL018362; Thu, 6 Sep 2007 13:26:33 GMT Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 6 Sep 2007 06:26:31 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 6 Sep 2007 06:26:30 -0700 Message-ID: <46DFFFFD.6000309@cisco.com> Date: Thu, 06 Sep 2007 09:26:21 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070601 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sazzadur rahman References: <82bdb5ec0709051817j16bfea69u74b9f4978c1f00fc@mail.gmail.com> In-Reply-To: <82bdb5ec0709051817j16bfea69u74b9f4978c1f00fc@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Sep 2007 13:26:30.0866 (UTC) FILETIME=[89562B20:01C7F089] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=2902; t=1189085194; x=1189949194; c=relaxed/simple; s=sjdkim4002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20A=20query=20regarding=20sctp_bindx=20api=20in=20SCTP |Sender:=20; bh=iSzGqMPMmJMbll/HfcXDMPoY78cPC1RJLjQ5keyLgWs=; b=PQAyoO2xlmObZLDbLC+Vcs/+0vvad3XiBolESyl+WWb5ypt5srHdNjF/BGLjHsXPei4pgoOR cipqe9il8gjM8pfhcGIFDoxMbajUR1lh3V/EvSLl6a8dQ/8ijCmMiKjo; Authentication-Results: sj-dkim-4; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim4002 verified; ); Cc: freebsd-net@freebsd.org Subject: Re: A query regarding sctp_bindx api in SCTP 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: Thu, 06 Sep 2007 13:26:34 -0000 Definetly a bug... let me dig in a bit further.. it appears that ASCONF is not happening on sub-set bound sockets at all ;-( I will see if I can figure out why :-D R sazzadur rahman wrote: > Hello, > I am using sctp patch for freebsd6.1. For dynamic address configuration, I > am calling sctp_bindx() API after successfull bind() and connect() API's. > Although sctp_bindx() API successfully returns 0, the debug message shows: > > addr_mgmt_assoc: added to pending list... > asconf_queue_add: appended asconf ADD_IP_ADDRESS... > > And I didn't see any ASCONF chunk sent to the peer in the tcpdump. Hence, I > am confused why it should be in the pendling list instead of immediate send > to peer? > > In draft-ietf-tsvwg-addip-sctp-22.txt: page 20, A3, I have found that "If an > ASCONF chunk is outstanding, then the ASCONF chunk should be queued for > later transmission and no further action should be taken until the previous > ASCONF is acknowledged or a timeout occurs." But as I am calling > sctp_bindx() for the first time, there should not be any previous ASCONF > existing. > > Does anyone have any idea what I am missing here? > I would appriciate any help in this regard. > > Best Regards, > Md. Sazzadur Rahman, > Graduate Student, > School of Computer Science, > University of Oklahoma, > Norman, USA > > ---------------------------code segment I have used--------------------- > //socket > s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); > > //bind > memset(&myAddr, 0, sizeof myAddr); > myAddr.sin_family = AF_INET; > myAddr.sin_port = htons(5060); > myAddr.sin_addr.s_addr = inet_addr("129.15.78.125"); > if (bind(s, (struct sockaddr *)&myAddr, sizeof myAddr) < 0) { > goto close; > } > //connect > memset(&farAddr, 0, sizeof farAddr); > farAddr.sin_family = AF_INET; > farAddr.sin_port = htons(6060); > farAddr.sin_addr.s_addr = inet_addr( "129.15.78.114" ); > int iRet = connect(s, (struct sockaddr *)&farAddr, sizeof farAddr); > > //sctp_bindx > struct sockaddr_in my2ndAddr; > memset(&my2ndAddr, 0, sizeof my2ndAddr); > my2ndAddr.sin_len = sizeof my2ndAddr; > my2ndAddr.sin_family = AF_INET; > my2ndAddr.sin_port = htons(5060); > my2ndAddr.sin_addr.s_addr = inet_addr("129.15.78.126"); > > iRet = sctp_bindx(s,(struct > sockaddr*)&my2ndAddr,1,SCTP_BINDX_ADD_ADDR); > > ------------------------------------------ > _______________________________________________ > 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" > -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)