From owner-freebsd-net@FreeBSD.ORG Thu Jul 6 01:18:42 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AA1716A4DA for ; Thu, 6 Jul 2006 01:18:42 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout1-b.corp.dcn.yahoo.com (mrout1-b.corp.dcn.yahoo.com [216.109.112.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id D902843D45 for ; Thu, 6 Jul 2006 01:18:41 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy8.corp.yahoo.com [216.145.48.13]) by mrout1-b.corp.dcn.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id k661IOKY006216; Wed, 5 Jul 2006 18:18:24 -0700 (PDT) Date: Thu, 06 Jul 2006 10:18:12 +0900 Message-ID: From: "George V. Neville-Neil" To: Randall Stewart In-Reply-To: <44A90031.9010308@cisco.com> References: <44A552FA.2030302@cisco.com> <20060703094806.689f33ae@marcin> <44A90031.9010308@cisco.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.6.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-net@freebsd.org, Marcin Jessa Subject: Re: 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 Jul 2006 01:18:42 -0000 At Mon, 03 Jul 2006 07:32:01 -0400, randall wrote: > > Bascially there are two socket models that > can be used by SCTP.. > > sd = socket(AF_INETX, SOCK_STREAM, IPPROTO_SCTP); > > or > > sd = socket(AF_INETX, SOCK_SEQPACKET, IPPROTO_SCTP); > > The first one will then look JUST like TCP... aka you > can take ANY TCP app you have and it will work... only > thing you might need to do is convert TCP_MAXSEG > and TCP_NODELAY socket option calls to ones with SCTP > instead... > > This is how I quickly converted several fun utilities.. > > The second model looks like UDP more or less. You > still need to do a listen() but other than that > you can just send and recv data... > > Now George also convert his packet pounder program > (don't remember the name.. Geroge?)... and > if you want I can place a tar-ball of some app > programs up that I use for testing.. but of course ..sigh.. there > is no documenation .. so it might not be to useful :-0 > > Let me knof if you want a tarball up on sctp.org of app code :-0 > Even without docs it couldn't hurt. I already sent the pointer to my version of NetPIPE (the pounder you mention) and their new release should have SCTP in it by default. Later, George