diff options
author | Ben Pfaff <blp@nicira.com> | 2010-01-25 10:52:28 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-01-25 10:52:28 -0800 |
commit | 49c36903d6d65bed96cba31f05534510a21a68d7 (patch) | |
tree | ffd8b53b6da72e0bc9aa7265eb296cd43669e57d /ofproto/collectors.c | |
parent | b3080599f6b280c63b9b6f4ca2d3c6006bcd9590 (diff) | |
parent | 56fd8edf80b6098289f9ddd94a6a4be3be648472 (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.c | 6 |
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; +} |