summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c5d222)
raw | patch | inline | side by side (parent: 4c5d222)
author | Mytnyk, VolodymyrX <volodymyrx.mytnyk@intel.com> | |
Tue, 11 Oct 2016 10:46:24 +0000 (11:46 +0100) | ||
committer | Mytnyk, VolodymyrX <volodymyrx.mytnyk@intel.com> | |
Mon, 26 Dec 2016 13:26:05 +0000 (13:26 +0000) |
If multiple interfaces are configured, only last one will
be monitored (notifications aren't sent for all others).
Change-Id: Ica918ef0557747d84677db739a64698d3756a675
Signed-off-by: Mytnyk, VolodymyrX <volodymyrx.mytnyk@intel.com>
be monitored (notifications aren't sent for all others).
Change-Id: Ica918ef0557747d84677db739a64698d3756a675
Signed-off-by: Mytnyk, VolodymyrX <volodymyrx.mytnyk@intel.com>
src/ovs_events.c | patch | blob | history |
diff --git a/src/ovs_events.c b/src/ovs_events.c
index 7521b280d2ec1769e538b7bc6c86dcd9e1bac0a6..ce5254daf70b0f824195875d06577b30974c9e83 100644 (file)
--- a/src/ovs_events.c
+++ b/src/ovs_events.c
*/
static int ovs_events_config_iface_exists(const char *ifname) {
if (ovs_events_ctx.config.ifaces == NULL)
- return -1;
+ return (-1);
/* check if given interface exists */
for (ovs_events_iface_list_t *iface = ovs_events_ctx.config.ifaces; iface;
iface = iface->next)
- return (strcmp(ifname, iface->name) == 0);
+ if (strcmp(ifname, iface->name) == 0)
+ return (1);
- return 0;
+ return (0);
}
/* Get OVS DB select parameter request based on rfc7047,