Blame SOURCES/iproute2-3.10.0-rtnl_send.patch

7787e2
diff --git a/ip/iplink.c b/ip/iplink.c
7787e2
index dc98019..15dd84f 100644
7787e2
--- a/ip/iplink.c
7787e2
+++ b/ip/iplink.c
7787e2
@@ -176,8 +176,13 @@ static int iplink_have_newlink(void)
7787e2
 		req.n.nlmsg_type = RTM_NEWLINK;
7787e2
 		req.i.ifi_family = AF_UNSPEC;
7787e2
 
7787e2
-		rtnl_send(&rth, &req.n, req.n.nlmsg_len);
7787e2
-		rtnl_listen(&rth, accept_msg, NULL);
7787e2
+		if (rtnl_send(&rth, &req.n, req.n.nlmsg_len) < 0) {
7787e2
+			perror("Could not check for "
7787e2
+				"link configuration over netlink support");
7787e2
+			have_rtnl_newlink = 0;
7787e2
+		} else {
7787e2
+			rtnl_listen(&rth, accept_msg, NULL);
7787e2
+		}
7787e2
 	}
7787e2
 	return have_rtnl_newlink;
7787e2
 }