From: Matthias Schiffer Date: Fri, 14 Apr 2017 00:24:08 +0000 (+0200) Subject: system-linux: allow "throw" route type X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=4375d1bc56301dd977ab102db995e07aa930d4a2;p=project%2Fnetifd.git system-linux: allow "throw" route type system_rtn_aton() was already parsing "throw" correctly, but system_rt() did now allow it. Signed-off-by: Matthias Schiffer --- diff --git a/system-linux.c b/system-linux.c index 471efff..3e11bdf 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1896,7 +1896,8 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd) rtm.rtm_type == RTN_ANYCAST) { rtm.rtm_scope = RT_SCOPE_LINK; } else if (rtm.rtm_type == RTN_BLACKHOLE || rtm.rtm_type == RTN_UNREACHABLE || - rtm.rtm_type == RTN_PROHIBIT || rtm.rtm_type == RTN_FAILED_POLICY) { + rtm.rtm_type == RTN_PROHIBIT || rtm.rtm_type == RTN_FAILED_POLICY || + rtm.rtm_type == RTN_THROW) { rtm.rtm_scope = RT_SCOPE_UNIVERSE; dev = NULL; }