SOURCES: iproute2-nl-detect.patch (NEW) - fix newlink detection on...

arekm arekm at pld-linux.org
Thu Oct 25 12:31:38 CEST 2007


Author: arekm                        Date: Thu Oct 25 10:31:38 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix newlink detection on older kernels

---- Files affected:
SOURCES:
   iproute2-nl-detect.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/iproute2-nl-detect.patch
diff -u /dev/null SOURCES/iproute2-nl-detect.patch:1.1
--- /dev/null	Thu Oct 25 12:31:38 2007
+++ SOURCES/iproute2-nl-detect.patch	Thu Oct 25 12:31:32 2007
@@ -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;
================================================================


More information about the pld-cvs-commit mailing list