X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-linux.c;h=e1343a500c0d5007d2e8269282e5d5bb0fe44f5b;hp=b3b58bea557df328f54f53e39fd06575a086a1a5;hb=c58e7f45ec4e32db109ffb12d22745133a3b1068;hpb=e4285cdc1bda303b01bbf2a43340d3f40f477820 diff --git a/system-linux.c b/system-linux.c index b3b58be..e1343a5 100644 --- a/system-linux.c +++ b/system-linux.c @@ -916,7 +916,7 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd) .rtm_family = (alen == 4) ? AF_INET : AF_INET6, .rtm_dst_len = route->mask, .rtm_table = RT_TABLE_MAIN, - .rtm_protocol = (route->flags & DEVADDR_KERNEL) ? RTPROT_KERNEL : RTPROT_BOOT, + .rtm_protocol = (route->flags & DEVADDR_KERNEL) ? RTPROT_KERNEL : RTPROT_STATIC, .rtm_scope = scope, .rtm_type = (cmd == RTM_DELROUTE) ? 0: RTN_UNICAST, };