aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-12-08 17:43:03 +0000
committerSteven Barth <steven@midlink.org>2014-12-08 17:43:03 +0000
commit212e218933d4a2fa64294d4b6faad73c1c1f418a (patch)
tree0fdbc1c1e4aefdf022ed7e075476765c5fa034a9 /package/network/config
parent1312973275e459214cd2b08f2ff461a2d7dbdea9 (diff)
downloadupstream-212e218933d4a2fa64294d4b6faad73c1c1f418a.tar.gz
upstream-212e218933d4a2fa64294d4b6faad73c1c1f418a.tar.bz2
upstream-212e218933d4a2fa64294d4b6faad73c1c1f418a.zip
This patch depends on "Pass source address to proto_add_ipv4_route".
I have not found a scenario that would break by setting the source address on default, but please let me know if any special considerations should be taken. Signed-off-by: Kristian Evensen <kristian.evensen at gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43582 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/dhcp.script2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script
index 90fa6d3054..17e22af795 100755
--- a/package/network/config/netifd/files/lib/netifd/dhcp.script
+++ b/package/network/config/netifd/files/lib/netifd/dhcp.script
@@ -20,7 +20,7 @@ setup_interface () {
# TODO: apply $broadcast
for i in $router; do
- proto_add_ipv4_route 0.0.0.0 0 "$i"
+ proto_add_ipv4_route 0.0.0.0 0 "$i" "$ip"
done
# CIDR STATIC ROUTES (rfc3442)