aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch
blob: f4c0a8092257e9ac1e89354b91fb4682caffe189 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -683,7 +683,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);