From john@sentinel.pakprotector.com  Wed Aug 30 03:04:47 2000
Return-Path: <john@sentinel.pakprotector.com>
Received: from nhj.nlc.net.au (nhj.nlc.net.au [203.24.133.1])
	by hub.freebsd.org (Postfix) with SMTP id 2B9CB37B422
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Aug 2000 03:04:43 -0700 (PDT)
Received: (qmail 11083 invoked from network); 30 Aug 2000 21:04:47 +1100
Received: from pacer.nlc.net.au (HELO sentinel.pakprotector.com) (203.24.133.16)
  by nhj.nlc.net.au with SMTP; 30 Aug 2000 21:04:47 +1100
Received: (from john@localhost)
	by sentinel.pakprotector.com (8.9.3/8.9.3) id VAA11001;
	Wed, 30 Aug 2000 21:04:54 +1100 (EST)
	(envelope-from john)
Message-Id: <200008301004.VAA11001@sentinel.pakprotector.com>
Date: Wed, 30 Aug 2000 21:04:54 +1100 (EST)
From: john@pakprotector.com
Sender: john@sentinel.pakprotector.com
Reply-To: john@pakprotector.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: User-mode ppp fails to add default route
X-Send-Pr-Version: 3.2

>Number:         20937
>Category:       bin
>Synopsis:       User-mode ppp fails to add default route
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 30 03:10:01 PDT 2000
>Closed-Date:    Thu Aug 31 12:51:35 PDT 2000
>Last-Modified:  Thu Aug 31 12:53:18 PDT 2000
>Originator:     John Saunders
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
NORTHLINK COMMUNICATIONS
>Environment:

	4.1-STABLE as cvsup'ed around 28th August. Did a cvsup on
	the 30th of August and no ppp file have been updated.

>Description:

 The following command is used to set the local and ISP address.

 set ifaddr 203.24.133.16/0 203.24.133.8/0 255.255.255.0 0.0.0.0

 Tried the following combinations of commands, all resulted in an
 invalid route as per the following error message. The included log
 is only for the last error, however the route that is trying to be
 added is the same for all cases, i.e. gateway 255.255.255.255

   add default HISADDR
   add! default HISADDR
   add 0 0 HISADDR
   add! 0 0 HISADDR
   add default 203.24.133.8
   add! default 203.24.133.8

Aug 30 20:47:54 sentinel ppp[10835]: tun0: Command: default: add! default 203.24.133.8  
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute failure: 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Cmd = Add! 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Dst = 0.0.0.0 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Gateway = 255.255.255.255 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Mask = 0.0.0.0 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: Warning: Add! route failed: 0.0.0.0: errno: Network is unreachable 

>How-To-Repeat:

	Follow the example ppp.conf file.

>Fix:

	Not known.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Aug 30 03:20:05 PDT 2000 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20937 
State-Changed-From-To: open->feedback 
State-Changed-By: brian 
State-Changed-When: Wed Aug 30 13:03:18 PDT 2000 
State-Changed-Why:  
Can you please add ``set log phase tun command tcp/ip debug ipcp'' 
to the start of your default section and comment out any other 
``set log'' commands, then do a ``netstat -rn'', start ppp, 
do another ``netstat -rn'', ``ping -c1 ftp.freebsd.org'' then do 
yet another ``netstat -rn'' and send me the output & ppp log ? 

I can't reproduce the problem here.... but you're not the only one 
to complain that something's wrong :-/ 

It would be interesting if you could try running ``show route'' 
and ``show iface'' from within ppp too - just to ensure that 
something sinister isn't going wrong :-I 

Ta 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20937 
State-Changed-From-To: feedback->closed 
State-Changed-By: brian 
State-Changed-When: Thu Aug 31 12:51:35 PDT 2000 
State-Changed-Why:  
The submitter has confirmed that this is fixed by the latest 
change to defs.c 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20937 
>Unformatted:
Wait.... this looks like it's the same as PR 20938
