From 1fb987e3b8b5d18bb484800c620b02fc307a0d62 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 9 Sep 2015 10:38:16 +0000 Subject: busybox: fix ip applet and netlink behavior Signed-off-by: Steven Barth SVN-Revision: 46833 --- .../busybox/patches/301-ip-link-fix-netlink-msg-size.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch (limited to 'package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch') diff --git a/package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch b/package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch new file mode 100644 index 0000000000..360324bf7c --- /dev/null +++ b/package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch @@ -0,0 +1,11 @@ +--- a/networking/libiproute/iplink.c ++++ b/networking/libiproute/iplink.c +@@ -470,7 +470,7 @@ static int do_add_or_delete(char **argv, + } + xrtnl_open(&rth); + ll_init_map(&rth); +- if (type_str) { ++ if (type_str && rtm == RTM_NEWLINK) { + struct rtattr *linkinfo = NLMSG_TAIL(&req.n); + + addattr_l(&req.n, sizeof(req), IFLA_LINKINFO, NULL, 0); -- cgit v1.2.3