}
}
-static int ovs_stats_get_port_stat_value(port_list_t *port,
- iface_counter index) {
+static derive_t ovs_stats_get_port_stat_value(port_list_t *port,
+ iface_counter index) {
if (port == NULL)
return 0;
- int value = 0;
+ derive_t value = 0;
for (interface_list_t *iface = port->iface; iface != NULL;
iface = iface->next) {
interface_list_t *prev_iface = NULL;
for (interface_list_t *iface = port->iface; iface != NULL;
- iface = port->iface) {
- if (strncmp(iface->iface_uuid, uuid, strlen(iface->iface_uuid))) {
+ iface = iface->next) {
+ if (!strncmp(iface->iface_uuid, uuid, strlen(iface->iface_uuid))) {
interface_list_t *del = iface;