13 lines
407 B
Diff
13 lines
407 B
Diff
|
--- ip/iplink.c 2008-07-11 11:00:24.000000000 +0200
|
||
|
+++ ip/iplink.c 2008-07-11 11:02:05.000000000 +0200
|
||
|
@@ -107,7 +107,8 @@
|
||
|
{
|
||
|
struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(n);
|
||
|
|
||
|
- if (n->nlmsg_type == NLMSG_ERROR && err->error == -EOPNOTSUPP)
|
||
|
+ if (n->nlmsg_type == NLMSG_ERROR &&
|
||
|
+ (err->error == -EOPNOTSUPP || err->error == -EINVAL))
|
||
|
have_rtnl_newlink = 0;
|
||
|
else
|
||
|
have_rtnl_newlink = 1;
|