Subject: Re: writing to routing socket: File exists
To: Andrew Brown <>
From: None <>
List: current-users
Date: 12/05/2000 09:37:15
>/etc/rc.d/network has the following line in its start section:
>        route add -inet -netmask 0xff000000 -reject
>which, i would assume from reading it, sets up a blockhole route for
> through lo0 ( to be precise, since netbsd doesn't
>do interface routing).
>what confuses me is that it (a) doesn't seem to have any effect on the
>routing table, and (b) always reports this:
>	writing to routing socket: File exists
>	add net gateway Bad file descriptor
>which looks like an error.  is this "right"?

	for me it works fine (on both 1.5 and 1.5L).  the command
	will configure the route marked with the arrow, and will reject
	any traffic that matches 127/8 (except


itojun[mango:/home/itojun] netstat -rn -f inet | grep 127
127                UGRS        0        0  33228  lo0 <--          UH          1        0  33228  lo0