system-linux: allow "throw" route type
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 14 Apr 2017 00:24:08 +0000 (02:24 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 14 Apr 2017 00:24:08 +0000 (02:24 +0200)
system_rtn_aton() was already parsing "throw" correctly, but system_rt()
did now allow it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
system-linux.c

index 471efffcd2876d5da733c44981240e67cd8527d0..3e11bdfccbad1490755df2ddd9b69be136d9d432 100644 (file)
@@ -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;
                }