From owner-freebsd-hackers Tue Oct 29 17:59:22 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA19411 for hackers-outgoing; Tue, 29 Oct 1996 17:59:22 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA19382 for ; Tue, 29 Oct 1996 17:59:10 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id MAA17994; Wed, 30 Oct 1996 12:28:53 +1030 From: Michael Smith Message-Id: <199610300158.MAA17994@genesis.atrad.adelaide.edu.au> Subject: Re: FreeBSD and IP tunneling To: bruno@CS.UCLA.EDU (Hemon Bruno) Date: Wed, 30 Oct 1996 12:28:52 +1030 (CST) Cc: freebsd-hackers@FreeBSD.org In-Reply-To: from "Hemon Bruno" at Oct 29, 96 03:37:30 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hemon Bruno stands accused of saying: > > I was told that FreeBSD has a general support for IP tunneling. I suppose > that it must be a function which appends to IP packets an optional tunnel > header(for example a UDP header) and an IP header. I think I found some > code for IP tunneling in FreeBSD (net/if_tun.c) but I can not find some > complete documentation about the functions and the implementation. > Therefore, I am looking for detailed documentation about how IP tunneling > is implemented in FreeBSD and how to use it. > thank you for your help. There's really nothing to it; the tunnel device lets you talk from user space directly to the network interface (via the /dev/tunX device), so you perform whatever encapsulation you require on the data in your userspace program. If you need more explanation than that, I suspect you may already be attempting too much 8) (Not that biting off more than you can chew is a _bad_ thing by any means 8) > Bruno Hemon bruno@cs.ucla.edu -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[