From owner-freebsd-bugs Wed Oct 22 11:20:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA16491 for bugs-outgoing; Wed, 22 Oct 1997 11:20:04 -0700 (PDT) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA16465; Wed, 22 Oct 1997 11:20:02 -0700 (PDT) (envelope-from gnats) Resent-Date: Wed, 22 Oct 1997 11:20:02 -0700 (PDT) Resent-Message-Id: <199710221820.LAA16465@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, mike@azog.cs.msu.su 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 X-Send-Pr-Version: www-1.0 Subject: bin/4825: routed discards the first character of the subnet= statement value Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 22 11:20:01 PDT 1997 >Last-Modified: >Originator: Mike E. Matsnev >Organization: Moscow State University >Release: 2.2.5-971007-BETA >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') { >Audit-Trail: >Unformatted: