Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 1996 04:41:15 GMT
From:      Adam David <adam@veda.is>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1943: route(1) args
Message-ID:  <199611020441.EAA00669@veda.is>
Resent-Message-ID: <199611020450.UAA22728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1943
>Category:       bin
>Synopsis:       route(1) args
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov  1 20:50:02 PST 1996
>Last-Modified:
>Originator:     Adam David
>Organization:
Veda Internet
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

	network

>Description:

	The commandline is not parsed very accurately, and this can
	produce bogus results. Also, it is non-obvious how to remove
	a lock (omit the -lock keyword and specify the value 0).

>How-To-Repeat:

	try the following:

	root# route change default -lock                 # does nothing
	root# route change default -lock -mtu            # segmentation fault
	root# route change default -lock -mtu garbage    # -lock -mtu 0
	root# route change default -mtu                  # segmentation fault
	root# route change default -mtu garbage          # -mtu 0

>Fix:
	
	don't rely so heavily on atoi() to DTRT
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611020441.EAA00669>