From owner-freebsd-net Wed Jan 24 20:39: 7 2001 Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 6793437B402 for ; Wed, 24 Jan 2001 20:38:50 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0P4cmX35105; Wed, 24 Jan 2001 20:38:48 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101250438.f0P4cmX35105@iguana.aciri.org> Subject: Re: error return by RTM_GET In-Reply-To: <200101250433.XAA75280@khavrinen.lcs.mit.edu> from Garrett Wollman at "Jan 24, 2001 11:33:42 pm" To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Date: Wed, 24 Jan 2001 20:38:48 -0800 (PST) Cc: rizzo@aciri.org, net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > The error message is kind of misleading, i wonder if we can > > replace the return value in sys/net/rtsock.c with > > ENOMSG /* No message of desired type */ ? > > I think at one point it was returning ENOENT. There are no good error > messages for this purpose; programs should do a better job of > interpreting the error numbers that we have. > > If you want to propose a fix to route(8) I won't object. yeah, this is probably the best way to avoid problems with userland apps. cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message