Subject: Re: CVS commit: src
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: source-changes
Date: 10/07/2007 14:40:41
On Fri, Oct 05, 2007 at 10:01:11AM +0200, Pavel Cahyna wrote:
> On Fri, Oct 05, 2007 at 03:28:14AM +0000, David Young wrote:
> > 
> > Module Name:	src
> > Committed By:	dyoung
> > Date:		Fri Oct  5 03:28:14 UTC 2007
> > 
> > Modified Files:
> > 	src/distrib/sets/lists/comp: mi
> > 	src/sys/net: if_gre.c if_gre.h
> > 	src/sys/netinet: Makefile in_proto.c
> > Removed Files:
> > 	src/sys/netinet: ip_gre.c ip_gre.h
> > 
> > Log Message:
> > Work in progress: use a raw socket for GRE in IP encapsulation
> > instead of adding/subtracting our own IPv4 header.
> > 
> > There are many benefits:  gre(4) needn't grok the outer encapsulation
> > header any longer, so this simplifies the gre(4) code.  The IP
> > stack needn't grok GRE, so it is simplified, too.
> 
> How did the IP stack need to grok GRE? I see that the IP stack itself was
> not touched by this commit.

Maybe my terminology is too loose, but the IPv4 protocol switch
(in_proto.c) was involved in passing GRE packets to IPv4-specific GRE
code in ip_gre.c, which dispatched the packets to an appropriate gre(4)
instance.

Dave

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