Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 18:38:24 -0800 (PST)
From:      Luigi Rizzo <rizzo@aciri.org>
To:        net@freebsd.org
Subject:   error return by RTM_GET
Message-ID:  <200101250238.f0P2cTK33421@iguana.aciri.org>

next in thread | raw e-mail | index | archive | help
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




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