From tim@dilbert.robbins.dropbear.id.au  Wed Sep  4 05:16:51 2002
Return-Path: <tim@dilbert.robbins.dropbear.id.au>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1DEE437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  4 Sep 2002 05:16:51 -0700 (PDT)
Received: from dilbert.robbins.dropbear.id.au (082.a.002.mel.iprimus.net.au [203.134.133.82])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5D71C43E72
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  4 Sep 2002 05:16:48 -0700 (PDT)
	(envelope-from tim@dilbert.robbins.dropbear.id.au)
Received: from dilbert.robbins.dropbear.id.au (sqque63cnjcofni6@localhost [127.0.0.1])
	by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id g84CGidE002809
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Sep 2002 22:16:44 +1000 (EST)
	(envelope-from tim@dilbert.robbins.dropbear.id.au)
Received: (from tim@localhost)
	by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id g84CGgqQ002808;
	Wed, 4 Sep 2002 22:16:42 +1000 (EST)
Message-Id: <200209041216.g84CGgqQ002808@dilbert.robbins.dropbear.id.au>
Date: Wed, 4 Sep 2002 22:16:42 +1000 (EST)
From: Tim Robbins <tim@robbins.dropbear.id.au>
Reply-To: Tim Robbins <tim@robbins.dropbear.id.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ppp(8) IPV6CP fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42407
>Category:       bin
>Synopsis:       ppp(8) IPV6CP fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    brucec
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 04 05:20:01 PDT 2002
>Closed-Date:    Sun Nov 14 20:26:06 UTC 2010
>Last-Modified:  Sun Nov 14 20:26:06 UTC 2010
>Originator:     Tim Robbins
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
>Environment:
FreeBSD 4.7-PRERELEASE i386
Dell Dimension XPS M200s (old P200MMX box)
External V.90 modem
ISP is iPrimus, Melbourne, Australia

>Description:

While trying to connect to my ISP after upgrading to 4.7-PRERELEASE from
4.6.2-RELEASE, I get the following error:

ppp[628]: tun0: Phase: deflink: lcp -> open 
ppp[628]: tun0: Phase: bundle: Network 
ppp[628]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! 
ppp[628]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 210.50.43.24/24 -> 0.0.0.0): Destination address required 
ppp[628]: tun0: Error: ipcp_InterfaceUp: unable to set ip address 
ppp[628]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! 
last message repeated 4 times
ppp[628]: tun0: Phase: bundle: Terminate 
ppp[628]: tun0: Phase: deflink: open -> lcp 
ppp[628]: tun0: Phase: deflink: Carrier lost 

I did not get this error with 4.6.2-RELEASE.

This is my ppp.conf:

default:
 set log Phase Chat Connect tun
 ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cuaa0
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 14400 # 4 hours
 set urgent +53
 allow user tim
 disable ipv6cp			# <-- workaround

iprimus:
 set phone ...
 set authname ...
 set authkey ...

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR

No IPv6 options were changed from the defaults in /etc/rc.conf on either
4.6 or 4.7. Kernel config is GENERIC but with I586_CPU, HZ=1000,
IPFIREWALL and IPFIREWALL_FORWARD added, and devices I don't have removed.

An observation that may or may not be helpful is that "ifconfig" used to
show tun0 as having an inet6 address regardless of whether it was open
or not, but now it never shows one. Other interfaces still have their
useless inet6 addresses.

>How-To-Repeat:

Not exactly known.

>Fix:

Adding "disable ipv6" to /etc/ppp/ppp.conf works around the problem.

Otherwise, either make IPV6CP errors not fatal, disable it by default,
or add something to the release notes stating that IPV6CP may cause
problems.
>Release-Note:
>Audit-Trail:

From: Tim Robbins <tjr@FreeBSD.ORG>
To: freebsd-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: bin/42407: ppp(8) IPV6CP fails
Date: Thu, 5 Sep 2002 11:20:13 +1000

 Actually, this may not have anything to do with IPV6CP. It also sometimes
 fails with it disabled with the following message:
 
 ppp[326]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 203.134.172.78/24 -> 0.0.0.0): Destination address required 
 ppp[326]: tun0: Error: ipcp_InterfaceUp: unable to set ip address 
 
 Replacing /usr/sbin/ppp with the RELENG_4_6 version seems to help.
 
 
 Tim
State-Changed-From-To: open->closed 
State-Changed-By: brucec 
State-Changed-When: Sun Nov 14 20:23:57 UTC 2010 
State-Changed-Why:  
It looks like this was fixed in rev 1.90.2.12 of ipcp.c. 
If you still see the problem we can re-open the PR. 


Responsible-Changed-From-To: freebsd-bugs->brucec 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Nov 14 20:23:57 UTC 2010 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42407 
>Unformatted:
