summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2012-06-13 13:24:19 +0200
committerThomas Graf <tgraf@redhat.com>2012-06-13 13:24:19 +0200
commit4f933648622fff2b7fd6ec6c71724da4992c2544 (patch)
tree509657479f525d1618a6138f7943c34bc656edaf
parent49fe936b8e03ad3398820180310f5161b04c863a (diff)
downloadlibnl-4f933648622fff2b7fd6ec6c71724da4992c2544.tar.gz
link: rtnl_link_get_kernel() should only wait for ACK if AUTO-ACK is on
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--lib/route/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link.c b/lib/route/link.c
index 0a17110..aea43b9 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -1025,7 +1025,7 @@ int rtnl_link_get_kernel(struct nl_sock *sk, int ifindex, const char *name,
/* If an object has been returned, we also need to wait for the ACK */
if (err == 0 && obj)
- nl_wait_for_ack(sk);
+ wait_for_ack(sk);
return 0;
}