Subject: Re: gre encap destination = point-to-point destination
To: None <tech-net@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-net
Date: 05/07/2007 16:56:39
On Mon, May 07, 2007 at 08:27:11AM -0400, Greg Troxel wrote:
>   Right now, gre(4) adds/removes encapsulating IP headers, it hooks
>   into protocol switches in order to "catch" packets sent to its IP
>   protocol numbers of interest, and it demultiplexes received packets.
>   We can do all of that with a socket.  I will make gre use one.
> 
> I do not follow this.  Would one then have to have a user-space program
> and a tun device?   Or would that then be possible, alongside the
> current config?   Or did you mean something else?

I mean that gre(4) will create a socket with socreate(), and then it
will use so->so_receive() and so->so_send() to receive and send packets.
This is the way that GRE in UDP tunnels work today.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933