diff options
author | glebius <glebius@FreeBSD.org> | 2007-03-22 10:51:03 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2007-03-22 10:51:03 +0000 |
commit | 060c94f5be5dc06fae3d10b45b46f15f5b349d26 (patch) | |
tree | 1513fa0ff2d6ce85d22bf0c7b04067cac23a6315 /sys/kern/uipc_socket.c | |
parent | d983ff428ea8ec97e3222bf26598dc5dea9cb4b1 (diff) | |
download | FreeBSD-src-060c94f5be5dc06fae3d10b45b46f15f5b349d26.zip FreeBSD-src-060c94f5be5dc06fae3d10b45b46f15f5b349d26.tar.gz |
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
Diffstat (limited to 'sys/kern/uipc_socket.c')
0 files changed, 0 insertions, 0 deletions