interface-ip: fix route selection for host dependencies
authorFelix Fietkau <nbd@nbd.name>
Tue, 13 Mar 2018 12:05:28 +0000 (13:05 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 13 Mar 2018 12:06:38 +0000 (13:06 +0100)
commit69aeaabcfb62d1821275cd0c076ef557c6814c51
treea30a604c64f5c5372293b994b75ec8b06e13f480
parentc06f84238952211b35c2940a82fcce3fcc3221c1
interface-ip: fix route selection for host dependencies

In order to find the best match, allow overriding the last found entry
if route->mask for the new entry is bigger than the one from the previous
entry.

Patch submitted by 'Mikael' in FS#1358

Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface-ip.c