From owner-freebsd-net@FreeBSD.ORG Thu Sep 6 01:51:48 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 697DC16A421 for ; Thu, 6 Sep 2007 01:51:48 +0000 (UTC) (envelope-from rahman.sazzadur@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 441D213C457 for ; Thu, 6 Sep 2007 01:51:48 +0000 (UTC) (envelope-from rahman.sazzadur@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so13933waf for ; Wed, 05 Sep 2007 18:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=VuqNNRQc41zmOy2xRWR/Oiv3IcztHkVKaZYFvxthGHs=; b=CWp4zpvAKsrFzhL9WMiwSElzQYNz4wNb6RhqQbYXtgBhfcc8MSj0P2IX1S1dTLAQEd5hSEwcE3kxFJQWpUaJ491wVNskQG3V6CxJr28z5HiCrDsJwB9o3tcNeWYZNSql3Gl3DFFG0+1QwMikIVtD6T+fMADahHXphzdjs1vQJmo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=MPDuzDk39l67fJ5sAwWeRWeFxaBAPHfgfvp9lHQgQ2IpUrjsF46FCYtOrrJzxH9AwDq+iCG9RykruNG+nAHl9MlGZX8lWMY1XFoa30awbEHWCqzRlEFrcpPNqbg1RmeE0CTzXd6RwgETfp1rQRdn4R6WQ1QQx5/fgTLce9AEgCs= Received: by 10.115.90.1 with SMTP id s1mr6668wal.1189041454477; Wed, 05 Sep 2007 18:17:34 -0700 (PDT) Received: by 10.115.79.2 with HTTP; Wed, 5 Sep 2007 18:17:34 -0700 (PDT) Message-ID: <82bdb5ec0709051817j16bfea69u74b9f4978c1f00fc@mail.gmail.com> Date: Wed, 5 Sep 2007 20:17:34 -0500 From: "sazzadur rahman" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 01:51:48 -0000 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); ------------------------------------------