From logix@foobar.franken.de  Thu Aug 20 08:10:03 1998
Received: from foobar.franken.de (foobar.franken.de [194.94.249.81])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA24733
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Aug 1998 08:09:47 -0700 (PDT)
          (envelope-from logix@foobar.franken.de)
Received: (from logix@localhost)
	by foobar.franken.de (8.8.8/8.8.5) id RAA13835;
	Thu, 20 Aug 1998 17:08:41 +0200 (CEST)
Message-Id: <199808201508.RAA13835@foobar.franken.de>
Date: Thu, 20 Aug 1998 17:08:41 +0200 (CEST)
From: logix@foobar.franken.de
Reply-To: logix@foobar.franken.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: bogus error-message from route(8)
X-Send-Pr-Version: 3.2

>Number:         7694
>Category:       bin
>Synopsis:       bogus error-message from route(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 20 08:20:01 PDT 1998
>Closed-Date:    Mon Jan 31 09:33:30 PST 2000
>Last-Modified:  Mon Jan 31 09:36:11 PST 2000
>Originator:     Harold Gutch
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
>Environment:
-STABLE Kernel from Aug. 17, world from a 2.2 snapshot from Jul. 8.
No private IPs (192.168/16 etc.) are being used for any interfaces.

>Description:
route(8) returns a bugus errormsg when changing the defaultroute to an
unreachable host.

>How-To-Repeat:
assuming 192.168.0.1 is not directly reachable:

# netstat -rn |grep '192\.168'
# route change default 192.168.0.1
writing to routing socket: Disc quota exceeded
change net default: gateway 192.168.0.1: Disc quota exceeded
# netstat -rn |grep '192\.168' 
default            192.168.0.1        UGSc        0        0       ed0
# 

Then packets which should be routed via the default-route according to the
routingable do not reach the local ethernet according to tcpdump on another host
on the network-segment attached to ed0

>Fix:
	
none known
>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@parc.xerox.com>
To: logix@foobar.franken.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/7694: bogus error-message from route(8) 
Date: Thu, 20 Aug 1998 17:03:02 PDT

 route.c needs to be modified to report EDQUOT as "You just created a
 routing loop".  Standard C has no error that means this, so FreeBSD
 uses EDQUOT since it's not something that has meaning for networking.
 
 (Or maybe rt_setgate() in /sys/net/route.c needs to undo the change and
 then report some other error; the code is there to detect this
 situation but not to remedy it...)
 
   Bill
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Jan 31 09:33:30 PST 2000 
State-Changed-Why:  
Duplicate of PR kern/1093. 
>Unformatted:
