From owner-freebsd-current@FreeBSD.ORG Thu Nov 9 17:35:18 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05D5316A5AA; Thu, 9 Nov 2006 17:35:18 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3CE743DA4; Thu, 9 Nov 2006 17:35:11 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-8.cisco.com ([171.68.10.93]) by sj-iport-4.cisco.com with ESMTP; 09 Nov 2006 09:13:34 -0800 X-IronPort-AV: i="4.09,406,1157353200"; d="scan'208"; a="1863432790:sNHT2269785730" Received: from sj-core-4.cisco.com (sj-core-4.cisco.com [171.68.223.138]) by sj-dkim-8.cisco.com (8.12.11/8.12.11) with ESMTP id kA9HDXWl016357; Thu, 9 Nov 2006 09:13:33 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-4.cisco.com (8.12.10/8.12.6) with ESMTP id kA9HDFOh010188; Thu, 9 Nov 2006 09:13:33 -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); Thu, 9 Nov 2006 09:13:26 -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); Thu, 9 Nov 2006 09:13:26 -0800 Message-ID: <4553618E.5010508@cisco.com> Date: Thu, 09 Nov 2006 12:12:46 -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: Ruslan Ermilov References: <45524517.1060501@cisco.com> <20061109115246.GA55317@rambler-co.ru> <45532D06.2010203@cisco.com> <20061109153823.GA1363@rambler-co.ru> In-Reply-To: <20061109153823.GA1363@rambler-co.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Nov 2006 17:13:26.0300 (UTC) FILETIME=[5E6DC5C0:01C70422] DKIM-Signature: a=rsa-sha1; q=dns; l=2519; t=1163092413; x=1163956413; c=relaxed/relaxed; s=sjdkim8002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:Randall=20Stewart=20 |Subject:Re=3A=20SCTP=20is=20in=20the=20Tree=20=3A-) |Sender:; X=v=3Dcisco.com=3B=20h=3D6jxa4U8CaQPnr0mZJjF5W5jvfn0=3D; b=JWAeujJItVO/su4ZwYhGv+LRQcEe37PHL/BfOUlqmNhHZTz6jAAeknWDCN9p5UbStnT8i0rB x/B95brjTD/SaVwaFBBef05RcoHRjPeKrDoeF0K/8E4KWk4/r+py7fGq; Authentication-Results: sj-dkim-8; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim8002 verified; ); Cc: freebsd-current@freebsd.org Subject: Re: SCTP is in the Tree :-) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2006 17:35:18 -0000 Ruslan Ermilov wrote: > On Thu, Nov 09, 2006 at 08:28:38AM -0500, Randall Stewart wrote: > >>If you look on one of my postings.. I actually want to >>verify where to place man pages.. I don't have a >>sctp(4).. which is a GREAT idea.. >> >>But I do have >> >>sctp_sendmsg(2) >>sctp_recvmsg(2) >>sctp_send(2) >> > > What are they? I can only find > > src/sys/netinet/sctp_uio.h:ssize_t sctp_sendmsg > > when word-searching for "sctp_sendmsg". If these are > some new syscalls, then they need to be implemented > first, then added to libc, and then the manpages should > go to src/lib/libc/sys/. Well.. actually they are syscalls.. but not obvious that way.. since you need libsctp.a/so which I asked about also in a previous email :-0 Basically we implement a generic form of the syscall and then in libsctp.a there is the actual syscall... aka the wrapper that does: ssize_t sctp_recvmsg (int s, void *dbuf, size_t len, struct sockaddr *from, socklen_t *fromlen, struct sctp_sndrcvinfo *sinfo, int *msg_flags) { #ifdef SYS_sctp_generic_recvmsg struct iovec iov[2]; iov[0].iov_base = dbuf; iov[0].iov_len = len; return (syscall(SYS_sctp_generic_recvmsg, s, iov, 1, from, fromlen, sinfo, msg_flags)); #else ... #endif For example.. .. These are all fun things from the socketapi.. (see my post .. something about looking for a home as the subject line). If they are functional wrappers > around existing syscalls (sendmsg(2) etc.), then the > wrapping code and manpages should go into libc/net/, > and section should be 3 and not 2. If they're something > else, well... tell me what they are supposed to be. ;) > Well.. I guess they are functional wrappers.. since the syscall is a generic one so that way if the ietf someday makes a syscall with an iov then we have it already :-) > >>And maybe one other that I am not remembering this >>early without a cup of coffee.. >> >>Can I just put these in the doc tree under man2.. and man4 >>(assuming I write sctp(4))? (after of course getting >>gnn's approval).. or is there some other process to >>check documents in? >> > > sctp(4) should go where tcp(4) currently lives, and > should preferably have the same structure. I will work on getting this built ... but it will be a long airplane ride (maybe tommorrow) before I can get to it I think :-) R > > > Cheers, -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)