Subject: Re: route(8) doesn't always exit(1) on an error
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-net
Date: 11/15/2001 20:42:01
On Thu, 15 Nov 2001, der Mouse wrote:

: > I want to use the route(8) (or an equivalent command) invoked from a
: > program that adds and removes static routes.
:
: Why use a program, instead of manipulating the routing table yourself
: directly with a routing socket?  It's arguably easier, almost certainly
: faster, and completely avoids the problem you're having.

Because the routing socket is one of the ugliest APIs that *BSD provides,
and using it *properly* is a lot more difficult than it should be.  8-)

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/