From 4375d1bc56301dd977ab102db995e07aa930d4a2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 14 Apr 2017 02:24:08 +0200 Subject: [PATCH] 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 --- system-linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.11.0