glebius 060c94f5be When working on an RTM_CHANGE do the route editing in the following
sequence. First, if rt_ifa is going to be changed, then call
ifa_rtrequest(RTM_DELETE). Second, if gateway is going to be changed,
then call rt_setgate(). Third, change rt_ifa.

With this change we are able to change a link level route to a
gateway one, that wasn't possible before:

	# ifconfig em0 192.168.22.1/24
        # arp -s 192.168.22.99 00:11:22:33:44:55
        # route change 192.168.22.99 192.168.22.199
        # ping 192.168.22.99
	db>

Reported by:	avatar
2007-03-22 10:51:03 +00:00
..
2007-03-21 07:49:56 +00:00
2007-03-21 03:42:51 +00:00
2007-03-21 03:42:51 +00:00
2007-03-21 03:42:51 +00:00
2006-11-28 19:33:28 +00:00
2007-03-10 03:10:34 +00:00
2006-11-26 18:27:16 +00:00