2015-09-09 10:38:16 +00:00
|
|
|
--- a/networking/libiproute/iplink.c
|
|
|
|
+++ b/networking/libiproute/iplink.c
|
2017-08-23 21:13:34 +00:00
|
|
|
@@ -598,7 +598,7 @@ static int do_add_or_delete(char **argv,
|
2015-09-09 10:38:16 +00:00
|
|
|
}
|
|
|
|
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);
|