Subject: Re: standards/5645: No answer from 0.0.0.0
To: None <netbsd-bugs@NetBSD.ORG>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 06/24/1998 09:13:28
skeelo@white-dwarf.dyn.ml.org writes:
> Any request to 0.0.0.0 gets no response.

The fact that BSD ever routed unitcast packets to a location that was
not indicated in the routing table was a bug.  It is my belief that
the routing table should be WYSIWYG.

If this weird routing is desired, one should be able to do the 
following in /etc/netstart (*):

	ifconfig lo0 alias 0.0.0.0
	route add -inet -host 0.0.0.0 -iface lo0

Please lets not wire routing policy into the code.

(*) Note: I say should.  The current code has limitations/bugs that
prevents this from working.

    # route add -inet -host 0.0.0.0 -iface 127.0.0.1
    writing to routing socket: File exists
    add host 0.0.0.0: gateway 127.0.0.1: File exists

bug 1) the radix routing table appears to get confused and think 
	0.0.0.0/0 and 0.0.0.0/32 are one and the same CIDR entity.
    2) interfaces can't be named by name in 'route add -iface ifname".
	one has to look up the interface's primary address with ifconfig
	and then use that as the arg to "route add"
    3) ifconfig -a doesn't show alias addresses

-wolfgang
-- 
Wolfgang Rupprecht  		<wolfgang+gnus@spam.free.or.die.wsrcc.com>  
http://www.wsrcc.com/wolfgang/