Date: Wed, 22 Oct 1997 11:19:53 -0700 (PDT) From: mike@azog.cs.msu.su To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/4825: routed discards the first character of the subnet= statement value Message-ID: <199710221819.LAA16404@hub.freebsd.org> Resent-Message-ID: <199710221820.LAA16465@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710221819.LAA16404>