Martin Husemann wrote:
The following reply was made to PR kern/46528; it has been noted by GNATS. From: Martin Husemann<martin%duskware.de@localhost> To: gnats-bugs%NetBSD.org@localhost Cc: Subject: Re: kern/46528: kernel diagnostic assertion "rt != rt->rt_gwroute" failed: file "/usr/src/sys/net/route.c", line 860 Date: Sun, 3 Jun 2012 11:52:25 +0200 Sounds like a bug in routed to me: Internet: Destination Gateway Flags Refs Use Mtu Interface [..] 192.168.254.21 192.168.254.21 UH 0 0 33192 lo0 => Not nice of the kernel to crash, I would suggest to replace the KASSERT with an if and return EINVAL or something. Martin
The lo0 route was created as a result of adding an alias to the lo0 interface.
What I wanted to accomplish was to have routed(8) -m advertise a host route to this address.
neo10$ netstat -rnf inet|fgrep lo 127/8 127.0.0.1 UGRS 0 0 33192 lo0 127.0.0.1 127.0.0.1 UH 0 8 33192 lo0 192.168.254.21 192.168.254.21 UH 0 0 33192 lo0 neo10$ cat /etc/ifconfig.lo0 inet 127.0.0.1 netmask 255.0.0.0 !ifconfig lo0 alias 192.168.254.21/32 neo10$ ifconfig lo0 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192 inet 192.168.254.21 netmask 0xffffffff inet alias 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 neo10$