Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2001 02:36:09 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Brian Somers <brian@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net if_tun.c
Message-ID:  <20011125023609.C617@straylight.oblivion.bg>
In-Reply-To: <200111231313.fANDDNY33085@freefall.freebsd.org>; from brian@FreeBSD.org on Fri, Nov 23, 2001 at 05:13:23AM -0800
References:  <200111231313.fANDDNY33085@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 23, 2001 at 05:13:23AM -0800, Brian Somers wrote:
> brian       2001/11/23 05:13:23 PST
> 
>   Modified files:        (Branch: RELENG_4)
>     sys/net              if_tun.c 
>   Log:
>   MFC: Allow IFF_MULTICAST flag specification in ioctl(TUNSIFMODE)
>   
>   Revision  Changes    Path
>   1.74.2.6  +5 -7      src/sys/net/if_tun.c

For some reason, this breaks mozilla+ipv6-0.9.5,1 for me.
When I establish a ppp(8) session with my ISP and my tun0 looks like:

[root@straylight:v0 /home/roam]# ppp -nat -background nanolink
Working in background mode
Using interface: tun0
PPP enabled
[root@straylight:v0 /home/roam]# ifconfig tun0
tun0: flags=51<UP,POINTOPOINT,RUNNING> mtu 1500
        inet 217.75.135.248 --> 217.75.128.6 netmask 0xffffff00
        Opened by PID 523

..the SYN packets of an IPv4 connection attempt by Mozilla come
through with a funny TTL of 0.  For some reason Mozilla does not
react to the ICMP time exceeded messages (are they passed back
to the userland program on connect(2)? I'm not sure), but just
hangs there, waiting for an ACK that will never come.  The funny
part is that lynx-2.8.5.d3 works just fine, as do telnet(1) and ftp(1)
from my 4.4-STABLE-20011124.

After the attached (stupid, braindead, absolutely-missing-the-point,
but still working) patch, Mozilla works again.  Yes, I know the patch,
like, nearly reverts the commit - that was its purpose :)

I'll try rebuilding mozilla+ipv6 right now, I'll test again after
I wake up (if the build is successful :).  I hope this data point is
useful in the meantime.

G'luck,
Peter

-- 
This sentence would be seven words long if it were six words shorter.

Index: src/sys/net/if_tun.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if_tun.c,v
retrieving revision 1.74.2.6
diff -u -r1.74.2.6 if_tun.c
--- src/sys/net/if_tun.c	23 Nov 2001 13:13:19 -0000	1.74.2.6
+++ src/sys/net/if_tun.c	25 Nov 2001 00:22:54 -0000
@@ -477,7 +477,7 @@
 		case IFF_POINTOPOINT:
 		case IFF_BROADCAST:
 			tp->tun_if.if_flags &=
-			    ~(IFF_BROADCAST|IFF_POINTOPOINT|IFF_MULTICAST);
+			    ~(IFF_BROADCAST|IFF_POINTOPOINT);
 			tp->tun_if.if_flags |= *(int *)data;
 			break;
 		default:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011125023609.C617>