aboutsummaryrefslogtreecommitdiff
path: root/ofproto/collectors.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-01-25 10:52:28 -0800
committerBen Pfaff <blp@nicira.com>2010-01-25 10:52:28 -0800
commit49c36903d6d65bed96cba31f05534510a21a68d7 (patch)
treeffd8b53b6da72e0bc9aa7265eb296cd43669e57d /ofproto/collectors.c
parentb3080599f6b280c63b9b6f4ca2d3c6006bcd9590 (diff)
parent56fd8edf80b6098289f9ddd94a6a4be3be648472 (diff)
Merge "sflow" into "master".
No conflicts, but lib/dpif.c needed a few changes since struct dpif's member "class" was renamed to "dpif_class" in master since sflow was branched off.
Diffstat (limited to 'ofproto/collectors.c')
-rw-r--r--ofproto/collectors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ofproto/collectors.c b/ofproto/collectors.c
index f7cb1dbe..4589f329 100644
--- a/ofproto/collectors.c
+++ b/ofproto/collectors.c
@@ -121,3 +121,9 @@ collectors_send(const struct collectors *c, const void *payload, size_t n)
}
}
}
+
+int
+collectors_count(const struct collectors *c)
+{
+ return c->n_fds;
+}