Re: tun device & IPv6

2002-05-15 Thread Lars Eggert
Mikko Hyvarinen wrote: >>could someone with more knowledge of the tun device please take a look >>at the code around line 387 in net/if_tun.c? It looks like tunoutput() >>drops all packets here that aren't of the AF_INET family - most notably, >>it drops IPv6 packets. >> >>We hacked around this

Re: tun device & IPv6

2002-05-15 Thread Mikko Hyvarinen
On Tue, May 14, 2002 at 04:50:24PM -0700, Lars Eggert wrote: > Hi, > > could someone with more knowledge of the tun device please take a look > at the code around line 387 in net/if_tun.c? It looks like tunoutput() > drops all packets here that aren't of the AF_INET family - most notably, > it

Re: (KAME-snap 6384) Re: tun device & IPv6

2002-05-14 Thread Lars Eggert
Brian Somers wrote: > The tun device, when given the TUNSIFHEAD ioctl, will prepend the > address family. If TUNSIFHEAD is turned off, it will drop non IPv4 > packets. > > This was done for backwards compatibility. To use IPv6 with tun, you > must use the TUNSIFHEAD ioctl and prepend/strip t

Re: (KAME-snap 6381) tun device & IPv6

2002-05-14 Thread Brian Somers
> Hi, > > could someone with more knowledge of the tun device please take a look > at the code around line 387 in net/if_tun.c? It looks like tunoutput() > drops all packets here that aren't of the AF_INET family - most notably, > it drops IPv6 packets. > > We hacked around this with the simp

Re: (KAME-snap 6382) Re: tun device & IPv6

2002-05-14 Thread Lars Eggert
[EMAIL PROTECTED] wrote: >>could someone with more knowledge of the tun device please take a look >>at the code around line 387 in net/if_tun.c? It looks like tunoutput() >>drops all packets here that aren't of the AF_INET family - most notably, >>it drops IPv6 packets. > > > just to ma

Re: tun device & IPv6

2002-05-14 Thread itojun
>could someone with more knowledge of the tun device please take a look >at the code around line 387 in net/if_tun.c? It looks like tunoutput() >drops all packets here that aren't of the AF_INET family - most notably, >it drops IPv6 packets. just to make sure, which platform? from cc

tun device & IPv6

2002-05-14 Thread Lars Eggert
Hi, could someone with more knowledge of the tun device please take a look at the code around line 387 in net/if_tun.c? It looks like tunoutput() drops all packets here that aren't of the AF_INET family - most notably, it drops IPv6 packets. We hacked around this with the simple fix below, bu