From owner-freebsd-net Wed Jan 24 18:38:47 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 B5CEB37B699 for ; Wed, 24 Jan 2001 18:38:29 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0P2cTK33421; Wed, 24 Jan 2001 18:38:29 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101250238.f0P2cTK33421@iguana.aciri.org> Subject: error return by RTM_GET To: net@freebsd.org Date: Wed, 24 Jan 2001 18:38:24 -0800 (PST) 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 Hi, when you issue a RTM_GET request to the routing socket for a non-existing route, the write() to the socket fails with errno=3, ESRCH, which is printed by the "route" command as route: writing to routing socket: No such process 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 */ ? Does any userland application depend on ESRCH ? 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