From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 10 03:55:30 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 B252516A416 for ; Sun, 10 Dec 2006 03:55:30 +0000 (UTC) (envelope-from bsd.devil@gmail.com) Received: from nz-out-0102.google.com (nz-out-0506.google.com [64.233.162.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id E88CC43C9E for ; Sun, 10 Dec 2006 03:54:21 +0000 (GMT) (envelope-from bsd.devil@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so641636nzh for ; Sat, 09 Dec 2006 19:55:29 -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=gY37wsBSAyYwZR8UJa3qQ1ItTwrjlYyYsHiyjn3UYoCIgN4MWvJo8ZhN3tGuC1vLF9dXi87JqQ1fjeM85MAB1IRSPxgyhY++olojZdcB3XqzQonbT3Oxmri7W6NImIZ/BHKCGQ9Ud2MxlIBL558P9dcaeE4QDsW8APN+OCK6P0c= Received: by 10.64.181.12 with SMTP id d12mr8466969qbf.1165722928930; Sat, 09 Dec 2006 19:55:28 -0800 (PST) Received: by 10.65.224.17 with HTTP; Sat, 9 Dec 2006 19:55:28 -0800 (PST) Message-ID: Date: Sat, 9 Dec 2006 22:55:28 -0500 From: "Vishal Patil" To: "perryh@pluto.rain.com" In-Reply-To: <457b2252.FSOx8QPMmmbOnRoI%perryh@pluto.rain.com> MIME-Version: 1.0 References: <457b2252.FSOx8QPMmmbOnRoI%perryh@pluto.rain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-questions@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 03:55:30 -0000 For implementing iSCSI protocol as a kernel driver. On 12/9/06, perryh@pluto.rain.com wrote: > > "Vishal Patil" wrote: > > > Could someone point me to an example that shows a SIMPLE network > > protocol implemented over TCP/IP inside the FreeBSD kernel. > > I think I could look at the NFS client driver but is there an > > example simpler than that. > > NFS normally runs over UDP, not TCP. Telnet is one of the simpler > TCP-based applications, but it is not done in the kernel (nor are > most network apps). Is there some particular reason why you need > an example that is implemented inside the kernel, vs in userland? >