From nobody  Wed Oct 22 11:19:53 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id LAA16404;
          Wed, 22 Oct 1997 11:19:53 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199710221819.LAA16404@hub.freebsd.org>
Date: Wed, 22 Oct 1997 11:19:53 -0700 (PDT)
From: mike@azog.cs.msu.su
To: freebsd-gnats-submit@freebsd.org
Subject: routed discards the first character of the subnet= statement value
X-Send-Pr-Version: www-1.0

>Number:         4825
>Category:       bin
>Synopsis:       routed discards the first character of the subnet= statement value
>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:   Wed Oct 22 11:20:01 PDT 1997
>Closed-Date:    Sun Apr 19 10:53:23 PDT 1998
>Last-Modified:  Sun Apr 19 10:53:47 PDT 1998
>Originator:     Mike E. Matsnev
>Release:        2.2.5-971007-BETA
>Organization:
Moscow State University
>Environment:
FreeBSD sauron 2.2.5-971007-BETA FreeBSD 2.2.5-971007-BETA #3: Wed Oct 15 15:31:09 MSD 1997     toor@sauron:/usr/src/sys/compile/SAURON  i386
>Description:
Problem whith "subnet=" statement in /etc/gateways.
routed discards the first character of the network address.
Example: "subnet=10.0.0.0/24,1"
The network address is interpreted as 0.0.0.0/24,1.
>How-To-Repeat:

>Fix:
in the file /usr/src/sbin/routed/parms.c change the line:
            && *(val = &line[sizeof("subnet=")]) != '\0') {
to
            && *(val = &line[sizeof("subnet=")-1]) != '\0') {

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 19 10:53:23 PDT 1998 
State-Changed-Why:  
committed, thanks! 
>Unformatted:
