[Bug 9141] ip: RTNETLINK answers: Invalid argument

bugzilla at busybox.net bugzilla at busybox.net
Sat Aug 6 18:10:51 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=9141

--- Comment #3 from Neil MacLeod <busybox at nmacleod.com> ---
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index e674e9a..8d83b1f 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -364,7 +364,7 @@ IF_FEATURE_IP_RULE(ARG_table,)
        if (cmd != RTM_DELROUTE) {
                if (RTPROT_BOOT != 0)
                        req.r.rtm_protocol = RTPROT_BOOT;
-               if (RT_SCOPE_UNIVERSE != 0)
+               if (RT_SCOPE_UNIVERSE != 0 || req.r.rtm_scope ==
RT_SCOPE_NOWHERE)
                        req.r.rtm_scope = RT_SCOPE_UNIVERSE;
                if (RTN_UNICAST != 0)
                        req.r.rtm_type = RTN_UNICAST;

also works fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list