From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 10 15:05:54 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0258B16A50C for ; Sun, 10 Dec 2006 15:05:54 +0000 (UTC) (envelope-from bsd.devil@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BF2F43C9E for ; Sun, 10 Dec 2006 15:04:42 +0000 (GMT) (envelope-from bsd.devil@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so716543pyh for ; Sun, 10 Dec 2006 07:05:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=AvR9H/vQZGlXhN1SVVY1yVbcXUcHIK9vepUs9zK2GmqDqBA4hUwOlQVXjA3jCzhaMb7nTiBcPfyTGVTlKKtA7/jPmlGwlQZq7jzhlVWtl5u05qc2mJumq67lkryvufhqcBPsckDjMMb+Ljxeo9lCX/A5mqR5gdbpSnaX1OsDK1E= Received: by 10.65.180.7 with SMTP id h7mr9084701qbp.1165763151975; Sun, 10 Dec 2006 07:05:51 -0800 (PST) Received: by 10.65.224.17 with HTTP; Sun, 10 Dec 2006 07:05:51 -0800 (PST) Message-ID: Date: Sun, 10 Dec 2006 10:05:51 -0500 From: "Vishal Patil" To: "Julian Elischer" In-Reply-To: <457BC490.30904@elischer.org> MIME-Version: 1.0 References: <20061209.222526.-816359937.imp@bsdimp.com> <457BBCC3.9040605@mersin.edu.tr> <457BC490.30904@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: =?ISO-8859-1?Q?=D6zkan_KIRIK?= , freebsd-hackers@freebsd.org Subject: Re: Example network protocol implementation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2006 15:05:54 -0000 Would like to thank you all folks. These conversations are really good way of learning things...Also it is good to know different perspectives for solving the same problem.... On 12/10/06, Julian Elischer wrote: > > =D6zkan KIRIK wrote: > > I think netgraph subsystem provides this infrastructure for implementin= g > > new protocols. > > > > according to netgraph (4) man page: > > > > The aim of *netgraph* is to supplement rather than replace the > existing > > kernel networking infrastructure. It provides: > > > > *=B7* A flexible way of combining protocol and link level drive= rs. > > *=B7* A modular way to implement new protocols. > > *=B7* A common framework for kernel entities to inter-communica= te. > > *=B7* A reasonably fast, kernel-based implementation. > > > > There are many examples and applications at this address: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ > > also look it up in the daemon news archives at: > http://ezine.daemonnews.org/200003/netgraph.html > > a little out of date but the basic ideas are still right. > > > > > > > > you implementation may be "ng_iscsi" :) > > I thought of this but the trick is to do with the locking.. > You would need to get a transfer of control from the > netgraph locking domain to the geom or scsi universe's locking domain. > > There are all the components needed if you consider using the ksocket > netgraph node to open a TCP socket within the kernel, and you could hook > that to a scsi device netgraph node almost directly if you wrote it, > but the hardest part will be to create a method of crossing that locking > divide. > > Still it's possibly worth looking at. Of course the method suggested by > Warner is also very valid and may be about the same amount of work. > > > > > > I hope this helps, > > > > =D6zkan KIRIK > > EnderUNIX SDT @ Turkey > > Software Developer > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >