This patch depends on "Pass source address to proto_add_ipv4_route".
authorSteven Barth <cyrus@openwrt.org>
Mon, 8 Dec 2014 17:43:03 +0000 (17:43 +0000)
committerSteven Barth <cyrus@openwrt.org>
Mon, 8 Dec 2014 17:43:03 +0000 (17:43 +0000)
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>
SVN-Revision: 43582

package/network/config/netifd/files/lib/netifd/dhcp.script

index 90fa6d305437f2c15426a992993ef10527e99581..17e22af7959b2b80d5d66c94858424270e477c57 100755 (executable)
@@ -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)