From mato@Pod-Palmou.drp.fmph.uniba.sk  Fri Oct  4 09:09:08 1996
Received: from Pod-Palmou.drp.fmph.uniba.sk (Pod-Palmou.drp.fmph.uniba.sk [158.195.19.11])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA26110
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 4 Oct 1996 09:03:17 -0700 (PDT)
Received: (from mato@localhost) by Pod-Palmou.drp.fmph.uniba.sk (8.7.6/8.7.3) id SAA06293; Fri, 4 Oct 1996 18:03:22 +0200 (MET DST)
Message-Id: <199610041603.SAA06293@Pod-Palmou.drp.fmph.uniba.sk>
Date: Fri, 4 Oct 1996 18:03:22 +0200 (MET DST)
From: Martin Lucina <mato@Pod-Palmou.drp.fmph.uniba.sk>
Reply-To: Martin Lucina <mato@drp.fmph.uniba.sk.fmph.uniba.sk>
To: FreeBSD-gnats-submit@freebsd.org
Subject:
X-Send-Pr-Version: 3.2

>Number:         1721
>Category:       bin
>Synopsis:       /sbin/route incorrectly installs routes with non-standard masks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct  4 09:10:01 PDT 1996
>Closed-Date:    Sun Apr 26 09:34:03 PDT 1998
>Last-Modified:  Sun Apr 26 09:34:17 PDT 1998
>Originator:     Martin Lucina <mato@drp.fmph.uniba.sk>
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Comenius University, Bratislava, Slovakia
>Environment:

We are using one CLASS B network (158.195.0.0), which is further subdivided
into subnets using CLASS C masks (255.255.255.0). Our specific department
subnet is yet again subdivided into four 64-host sections with a netmask
of 255.255.255.192.

>Description:

When I try to install a route to one of our subnets that use the 255.255.255.192
netmask, /sbin/route will install the route with an incorrect mask of 32 bits
(255.255.255.255). It will continue to do this even if I explicitly specify
-netmask 255.255.255.192 AND/OR -net.

>How-To-Repeat:

Assuming that the appropriate interface mask is set to 26 bits (.192) and that
we are on subnet 158.195.19.0, where 158.195.19.3 is the router for the
other subnet(s):
# /sbin/route add -net 158.195.19.64 158.195.19.3

We can further elaborate on this by specifying:
# /sbin/route add -netmask 255.255.255.192 -net 158.195.19.64 158.195.19.3

Both of the above commands result in the following routing entry:
158.195.19.64/32   158.195.19.3       UGSc      0        0      ed0

>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: fenner 
Responsible-Changed-When: Fri Nov 29 13:55:18 PST 1996 
Responsible-Changed-Why:  
Clean up misfiled PR. 
State-Changed-From-To: open->feedback 
State-Changed-By: phk 
State-Changed-When: Sun Apr 26 02:55:08 PDT 1998 
State-Changed-Why:  
Can we have an update on this one ? 
State-Changed-From-To: feedback->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 26 09:34:03 PDT 1998 
State-Changed-Why:  
timed out 
>Unformatted:
