diff options
author | Steven Barth <steven@midlink.org> | 2015-09-09 10:38:16 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-09-09 10:38:16 +0000 |
commit | f685a21d2e04decdc869064b4e96fcfd453d1ce9 (patch) | |
tree | a5d7eec15319816729ccdb4e8ea2a17a297ed787 /package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch | |
parent | 74fc7d960274f9c94522978fec886eff7307ad64 (diff) | |
download | master-187ad058-f685a21d2e04decdc869064b4e96fcfd453d1ce9.tar.gz master-187ad058-f685a21d2e04decdc869064b4e96fcfd453d1ce9.tar.bz2 master-187ad058-f685a21d2e04decdc869064b4e96fcfd453d1ce9.zip |
busybox: fix ip applet and netlink behavior
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46833 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch')
-rw-r--r-- | package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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); |