From owner-freebsd-net Wed Jan 24 20:34: 2 2001 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 8F0F637B402 for ; Wed, 24 Jan 2001 20:33:44 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id XAA75280; Wed, 24 Jan 2001 23:33:42 -0500 (EST) (envelope-from wollman) Date: Wed, 24 Jan 2001 23:33:42 -0500 (EST) From: Garrett Wollman Message-Id: <200101250433.XAA75280@khavrinen.lcs.mit.edu> To: Luigi Rizzo Cc: net@FreeBSD.ORG Subject: error return by RTM_GET In-Reply-To: <200101250238.f0P2cTK33421@iguana.aciri.org> References: <200101250238.f0P2cTK33421@iguana.aciri.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > 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. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message