diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-03-15 14:48:18 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-03-15 14:48:18 +0000 |
commit | eb7f470e7bf98aaef29968b3a03c8a5cd23fa536 (patch) | |
tree | 71c674f84572109e4d311863574323996615108a /package/network/config/netifd/files | |
parent | 085b8e0014564a2d5e11c45178109c39c8f31a10 (diff) | |
download | upstream-eb7f470e7bf98aaef29968b3a03c8a5cd23fa536.tar.gz upstream-eb7f470e7bf98aaef29968b3a03c8a5cd23fa536.tar.bz2 upstream-eb7f470e7bf98aaef29968b3a03c8a5cd23fa536.zip |
netifd: dhcp: install host route to gateway (#19182)
Certain DHCP servers push a gateway outside of the assigned interface subnet,
to support those situations install a host route towards the gateway.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44789
Diffstat (limited to 'package/network/config/netifd/files')
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/dhcp.script | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script index 288ab18d00..a3219a0701 100755 --- a/package/network/config/netifd/files/lib/netifd/dhcp.script +++ b/package/network/config/netifd/files/lib/netifd/dhcp.script @@ -19,6 +19,7 @@ setup_interface () { # TODO: apply $broadcast for i in $router; do + proto_add_ipv4_route "$i" 32 "" "$ip" proto_add_ipv4_route 0.0.0.0 0 "$i" "$ip" done |