]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Stop setting the default route to the IP of the interface itself when the
authorian <ian@FreeBSD.org>
Sun, 27 Mar 2016 22:58:56 +0000 (22:58 +0000)
committerian <ian@FreeBSD.org>
Sun, 27 Mar 2016 22:58:56 +0000 (22:58 +0000)
commit0f5cae3fcfbb691c46d2d1f1dd872549d180dcdb
tree2b313f6d64854e96246ef02503f78e7483bb0684
parenta8dc6bab34e87f6630e6eccc9402628480b6a5a4
Stop setting the default route to the IP of the interface itself when the
bootp/dhcp server doesn't provide a router option.  Doing so prevents
setting defaultrouter=<ip> in rc.conf (it fails because there's already
a bogus default route installed by bootpc_init).

When an admin wants to use this style of proxy arp on an interface, the
proper mechanism is to set the "use-lease-addr-for-default-route" flag
in the dhcp server config.  That causes the lease address to be delivered
in the routers option, and the normal handling of the routers option will
then install the self-ip as the default route.

PR: 187094
sys/nfs/bootp_subr.c