From owner-freebsd-net Sun Mar 4 7:54:34 2001 Delivered-To: freebsd-net@freebsd.org Received: from color.sics.se (color.sics.se [193.10.66.199]) by hub.freebsd.org (Postfix) with ESMTP id 1481237B718 for ; Sun, 4 Mar 2001 07:54:32 -0800 (PST) (envelope-from adam@sics.se) Received: from sidewalker.sics.se (sidewalker.sics.se [193.10.66.107]) by color.sics.se (8.9.3/8.9.3) with SMTP id QAA11994; Sun, 4 Mar 2001 16:54:12 +0100 (MET) env-to () env-from (adam@sics.se) Content-Type: text/plain; charset="iso-8859-1" From: Adam Dunkels To: "guru chakravarthy" , ilugc@aero.iitm.ernet.in, freebsd-net@FreeBSD.ORG, molter@tin.it, brandt@fokus.gmd.de Subject: Re: how to implement TCP using RAW sockets Date: Sun, 4 Mar 2001 16:52:16 +0100 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01030416521600.21726@sidewalker.sics.se> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Saturday 03 March 2001 11:39, guru chakravarthy wrote: > hai > > As a final year UG project we are doing implementation of TCP with some > modifications to it using IP Raw sockets in linux can any one show me some > help pages where i can find help on Raw socket implementation and other > details . > Is there any such implementation help on the net . ? I would suggest implementing it using the tun network interface (see "man tun" on FreeBSD). With this, it is possible to read and write packets directly from and to the kernel. It is also possible to use tcpdump to inspect the packets on the tun interface. I used this with great success when implementing the lwIP TCP/IP stack (http://www.sics.se/~adam/lwip). For Linux, the virtual tunneling device at http://vtun.sourceforge.net/ seems to have the same functionality as the BSD tun interface (and more), but I haven't had the time to test it. /adam -- Adam Dunkels http://www.sics.se/~adam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message