git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revalidator: Fix ukey stats cache updating.
[sliver-openvswitch.git]
/
lib
/
netlink-notifier.c
diff --git
a/lib/netlink-notifier.c
b/lib/netlink-notifier.c
index
6739ece
..
9aa185d
100644
(file)
--- a/
lib/netlink-notifier.c
+++ b/
lib/netlink-notifier.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc.
+ * Copyright (c) 2009, 2010, 2011, 2012
, 2013
Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-41,7
+41,7
@@
struct nln {
/* Passed in by nln_create(). */
int multicast_group; /* Multicast group we listen on. */
/* Passed in by nln_create(). */
int multicast_group; /* Multicast group we listen on. */
- int protocol; /* Protoc
a
l passed to nl_sock_create(). */
+ int protocol; /* Protoc
o
l passed to nl_sock_create(). */
nln_parse_func *parse; /* Message parsing function. */
void *change; /* Change passed to parse. */
};
nln_parse_func *parse; /* Message parsing function. */
void *change; /* Change passed to parse. */
};
@@
-115,7
+115,8
@@
nln_notifier_create(struct nln *nln, nln_notify_func *cb, void *aux)
}
if (error) {
nl_sock_destroy(sock);
}
if (error) {
nl_sock_destroy(sock);
- VLOG_WARN("could not create netlink socket: %s", strerror(error));
+ VLOG_WARN("could not create netlink socket: %s",
+ ovs_strerror(error));
return NULL;
}
nln->notify_sock = sock;
return NULL;
}
nln->notify_sock = sock;
@@
-184,7
+185,7
@@
nln_run(struct nln *nln)
VLOG_WARN_RL(&rl, "netlink receive buffer overflowed");
} else {
VLOG_WARN_RL(&rl, "error reading netlink socket: %s",
VLOG_WARN_RL(&rl, "netlink receive buffer overflowed");
} else {
VLOG_WARN_RL(&rl, "error reading netlink socket: %s",
- strerror(error));
+
ovs_
strerror(error));
}
nln_report(nln, NULL);
}
}
nln_report(nln, NULL);
}