netifd: update dhcp.script to handle dynamic routing
authorMogula Pranay <mogula.pranay@nxp.com>
Tue, 9 Jan 2018 06:13:29 +0000 (11:43 +0530)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 10 Jan 2018 08:19:08 +0000 (09:19 +0100)
commit012d20eebe3aec0818aa949eb7b14754640df797
treefcac7d9d90081878d4930ea01c5cc76095dab4de
parent18f49449b0f5438ddf643e0473f35382e09ea4cb
netifd: update dhcp.script to handle dynamic routing

Certain DHCP servers push a gateway outside of the assigned interface subnet,
to support those situations, install a host route towards the gateway.

If Gateway and IP are served in same network, openwrt quagga cannot learn
routes (rip routes are not getting added, showing inactive) whereas
working fine when Gateway and IP are in different network.

Signed-off-by: Mogula Pranay <mogula.pranay@nxp.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/network/config/netifd/Makefile
package/network/config/netifd/files/lib/netifd/dhcp.script