Re: cvs commit: src/sys/net if_tun.c

From: Brian Somers <brian_at_Awfulhak.org>
Date: Wed, 26 Mar 2003 02:33:44 +0000
On Sat, 8 Mar 2003 11:32:50 -0600, Jonathan Lemon wrote:
> On Sun, Mar 09, 2003 at 02:27:23AM +0900, Hajimu UMEMOTO wrote:
> > Hi,
> > 
> > >>>>> On Sat, 8 Mar 2003 11:08:05 -0600
> > >>>>> Jonathan Lemon <jlemon_at_flugsvamp.com> said:
> > 
> > jlemon> On Sun, Mar 09, 2003 at 01:44:39AM +0900, Makoto Matsushita wrote:
> > > 
> > > Just a question.
> > > 
> > > jlemon>   Modified files:
> > > jlemon>     sys/net              if_tun.c 
> > > jlemon>   Log:
> > > jlemon>   The tun driver is INET only.
> > > 
> > > Doesn't this change disable IPv6 support of ppp(8)?
> > 
> > jlemon> Perhaps I goofed, but parts of the code (like tuninit()) certainly
> > jlemon> seem to indicate that the driver is already INET-only.
> > 
> > The code you mentioned has precondition.  Can ppp(8) support IPv6 with
> > any obstruction for IPv6 in if_tun?
> 
> I'm not sure.  However, I've backed the change out, and the current
> level of support should be identical to the historic behavior.

FWIW if_tun does support IPv6 -- it's just abstracted a bit so that we can
build it into a module without knowing in advance whether the kernel has
IPv6 support built in.

tuninit() just *looks* IPv4-only because it sets up a dstaddr for IPv4
configurations, where IPv6 just uses a prefixlen of 128.

Cheers.

> -- 
> Jonathan
> 


-- 
Brian <brian_at_Awfulhak.org>                       <brian.somers_at_sun.com>
      <http://www.Awfulhak.org>                <brian_at_[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !       <brian_at_[uk.]OpenBSD.org>
Received on Tue Mar 25 2003 - 18:49:16 UTC