From owner-cvs-src@FreeBSD.ORG Fri Dec 15 21:47:13 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B65016A534; Fri, 15 Dec 2006 21:47:13 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A05F43CA0; Fri, 15 Dec 2006 21:45:23 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-6.cisco.com with ESMTP; 15 Dec 2006 13:47:06 -0800 X-IronPort-AV: i="4.12,176,1165219200"; d="scan'208"; a="91510073:sNHT54068454" Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id kBFLl6b6027451; Fri, 15 Dec 2006 13:47:06 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id kBFLkva0014341; Fri, 15 Dec 2006 13:47:04 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 15 Dec 2006 13:46:58 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 15 Dec 2006 13:46:58 -0800 Message-ID: <458317AE.9060601@cisco.com> Date: Fri, 15 Dec 2006 16:46:22 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: <200612151201.kBFC1qEv006825@repoman.freebsd.org> <4582A6C9.8010009@FreeBSD.org> <4582FB5A.4010208@elischer.org> <200612151551.31355.jhb@freebsd.org> In-Reply-To: <200612151551.31355.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Dec 2006 21:46:58.0666 (UTC) FILETIME=[8BD514A0:01C72092] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1101; t=1166219226; x=1167083226; c=relaxed/simple; s=sjdkim3002; 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=20cvs=20commit=3A=20src/lib/libc/net=20Makefile.inc=20s ctp_sys_calls.c=20=20=0A=20src/sys/sys=20param.h |Sender:=20; bh=Gsr4Yl88BlbAHE46Gh3g+8o4xm9kBe6xx/yc7Fdvdvc=; b=UUWJ8gOiFlWHCHn3En7P2aGkJxQ/MOf1hIvSr83e9zkDCMCPOkXebdAlZW8obaNdtYy7rHk7 mLJMB/fpdQKk/CYJ6DPL1OLc3itxPQ40kOzc9kEV+G8nI0JhXPCuhJ2B; Authentication-Results: sj-dkim-3; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim3002 verified; ); Cc: src-committers@freebsd.org, Andre Oppermann , cvs-src@freebsd.org, cvs-all@freebsd.org, Randall Stewart , Julian Elischer , "Bruce M. Simpson" Subject: Re: cvs commit: src/lib/libc/net Makefile.inc sctp_sys_calls.c src/sys/sys param.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 21:47:13 -0000 John Baldwin wrote: > On Friday 15 December 2006 14:45, Julian Elischer wrote: > >>Bruce M. Simpson wrote: >> >>>Andre Oppermann wrote: >>> >>>>What makes these sctp_* syscalls so special as opposed to their >>>>generic and protocol agnostic counterparts? >>> >>>They're used for operations which do not have a direct correspondence in >>>the existing functions, i.e. connecting to multihomed peers, and dealing >>>with one-to-many sockets. >>> >>>See Section 9.3-9.12, UNIX Network Programming Vol 1 3e for more info. >> >> >>generally we would use socket ops or ioctls for this sort of thing.. >>syscalls is not how they would normally be done.... > > > I'll give a free paper cookie to the first person to actually go _read_ the > committed code and notice that, *tada*, aside from the sctp_send*(), and > sctp_recvmsg() functions, these are indeed library wrapper functions around > getsockopt() and setsockopt(). > Exactly... Thank you John.. I owe you a beer :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)