From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 9 21:02:37 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 E95C216A4CE; Sat, 9 Dec 2006 21:02:37 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67B5743CA6; Sat, 9 Dec 2006 21:01:24 +0000 (GMT) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id kB9L2TqR096658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 9 Dec 2006 13:02:29 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id kB9L2Tmt096657; Sat, 9 Dec 2006 13:02:29 -0800 (PST) Received: from fbsd61 ([192.168.200.61]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA05503; Sat, 9 Dec 06 12:52:00 PST Date: Sat, 09 Dec 2006 12:53:38 -0800 From: perryh@pluto.rain.com To: bsd.devil@gmail.com Message-Id: <457b2252.FSOx8QPMmmbOnRoI%perryh@pluto.rain.com> References: In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Sat, 09 Dec 2006 21:02:38 -0000 "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?