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
include $(TOPDIR)/rules.mk
PKG_NAME:=netifd
include $(TOPDIR)/rules.mk
PKG_NAME:=netifd
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
# TODO: apply $broadcast
for i in $router; do
# 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
proto_add_ipv4_route 0.0.0.0 0 "$i" "$ip"
done