Subject: Re: does gif(4) do RFC 2003 IPv4-in-IPv4 encapsulation?
To: Alan Barrett <apb@cequrux.com>
From: Greg A. Woods <woods@weird.com>
List: tech-net
Date: 03/13/2002 15:11:34
[ On Wednesday, March 13, 2002 at 17:49:26 (+0200), Alan Barrett wrote: ]
> Subject: Re: does gif(4) do RFC 2003 IPv4-in-IPv4 encapsulation?
>
> On Mon, 04 Mar 2002, Greg A. Woods wrote:
> > Does 'gif' really do encapsulation is according to RFC 2003?
> 
> Yes, I think so, based on code inspection.  It appears that
> in_gif_output() in netinet/in_gif.c sets proto = IPPROTO_IPV4 in
> the outer header when the inner packet has address family AF_INET.
> IPPROTO_IPV4 is defined as 4, which is the right value for RFC2003
> compatibility.
> 
> I have submitted a PR with a man page update.

Sounds good to me!  Thanks for taking the time to do the inspection!

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>