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 | c4f5cbcdfbbbdc282e972f44a50c30099a401da8 (patch) | |
tree | a24d5af269b0975dbb86cd379ce4fea677886c17 /package/network | |
parent | 309b8df12545a95901bea736ef702c5f79494187 (diff) | |
download | master-187ad058-c4f5cbcdfbbbdc282e972f44a50c30099a401da8.tar.gz master-187ad058-c4f5cbcdfbbbdc282e972f44a50c30099a401da8.tar.bz2 master-187ad058-c4f5cbcdfbbbdc282e972f44a50c30099a401da8.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44789 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/config/netifd/Makefile | 2 | ||||
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/dhcp.script | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/package/network/config/netifd/Makefile b/package/network/config/netifd/Makefile index 81af3a72e5..d1891902d0 100644 --- a/package/network/config/netifd/Makefile +++ b/package/network/config/netifd/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=netifd -PKG_VERSION:=2015-03-06 +PKG_VERSION:=2015-03-15 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE_PROTO:=git 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 |