2008-02-06 15:21:38 +00:00
|
|
|
--- iproute-2.6.23/iproute2-2.6.23/ip/iplink.c
|
|
|
|
+++ iproute-2.6.23/iproute2-2.6.23/ip/iplink.c
|
2008-02-06 15:08:41 +00:00
|
|
|
@@ -107,7 +107,8 @@ static int accept_msg(const struct sockaddr_nl *who,
|
|
|
|
{
|
|
|
|
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;
|