Author: jow Date: 2015-03-15 15:48:18 +0100 (Sun, 15 Mar 2015) New Revision: 44789
Modified: trunk/package/network/config/netifd/Makefile trunk/package/network/config/netifd/files/lib/netifd/dhcp.script Log: 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 <[email protected]> Modified: trunk/package/network/config/netifd/Makefile =================================================================== --- trunk/package/network/config/netifd/Makefile 2015-03-15 14:19:28 UTC (rev 44788) +++ trunk/package/network/config/netifd/Makefile 2015-03-15 14:48:18 UTC (rev 44789) @@ -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 Modified: trunk/package/network/config/netifd/files/lib/netifd/dhcp.script =================================================================== --- trunk/package/network/config/netifd/files/lib/netifd/dhcp.script 2015-03-15 14:19:28 UTC (rev 44788) +++ trunk/package/network/config/netifd/files/lib/netifd/dhcp.script 2015-03-15 14:48:18 UTC (rev 44789) @@ -19,6 +19,7 @@ # 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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
