]> git.pld-linux.org Git - packages/iproute2.git/commitdiff
- fix newlink detection on older kernels
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 25 Oct 2007 10:31:32 +0000 (10:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    iproute2-nl-detect.patch -> 1.1

iproute2-nl-detect.patch [new file with mode: 0644]

diff --git a/iproute2-nl-detect.patch b/iproute2-nl-detect.patch
new file mode 100644 (file)
index 0000000..67c4545
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/ip/iplink.c b/ip/iplink.c
+index 8e0ed2a..f28f91c 100644
+--- a/ip/iplink.c
++++ b/ip/iplink.c
+@@ -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;
This page took 0.151009 seconds and 4 git commands to generate.