diff options
Diffstat (limited to 'package/utils/busybox/patches/000-busybox-1.25.0-ip.patch')
-rw-r--r-- | package/utils/busybox/patches/000-busybox-1.25.0-ip.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/000-busybox-1.25.0-ip.patch b/package/utils/busybox/patches/000-busybox-1.25.0-ip.patch new file mode 100644 index 0000000000..50cd77509e --- /dev/null +++ b/package/utils/busybox/patches/000-busybox-1.25.0-ip.patch @@ -0,0 +1,17 @@ +ip: fix an improper optimization: req.r.rtm_scope may be nonzero here +Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> + +--- a/networking/libiproute/iproute.c ++++ b/networking/libiproute/iproute.c +@@ -362,10 +362,9 @@ IF_FEATURE_IP_RULE(ARG_table,) + req.r.rtm_scope = RT_SCOPE_NOWHERE; + + if (cmd != RTM_DELROUTE) { ++ req.r.rtm_scope = RT_SCOPE_UNIVERSE; + if (RTPROT_BOOT != 0) + req.r.rtm_protocol = RTPROT_BOOT; +- if (RT_SCOPE_UNIVERSE != 0) +- req.r.rtm_scope = RT_SCOPE_UNIVERSE; + if (RTN_UNICAST != 0) + req.r.rtm_type = RTN_UNICAST; + } |