netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / lib / sflow_api.h
index be8d997..2730a4c 100644 (file)
@@ -1,5 +1,9 @@
-/* Copyright (c) 2002-2009 InMon Corp. Licensed under the terms of the InMon sFlow licence: */
-/* http://www.inmon.com/technology/sflowlicense.txt */
+/* Copyright (c) 2002-2009 InMon Corp. Licensed under the terms of either the
+ *   Sun Industry Standards Source License 1.1, that is available at:
+ *    http://host-sflow.sourceforge.net/sissl.html
+ * or the InMon sFlow License, that is available at:
+ *    http://www.inmon.com/technology/sflowlicense.txt
+ */
 
 #ifndef SFLOW_API_H
 #define SFLOW_API_H 1
@@ -25,7 +29,7 @@
 #endif
 
 #include "sflow.h"
-  
+
 /* define SFLOW_SOFTWARE_SAMPLING to 1 if you need to use the
    sfl_sampler_takeSample routine and give it every packet */
 /* #define SFLOW_SOFTWARE_SAMPLING */
@@ -42,7 +46,7 @@
    __________________________________
    | cls|  index     |   instance     |
    ----------------------------------
+
    but now is opened up to a 12-byte struct to ensure
    that ds_index has a full 32-bit field, and to make
    accessing the components simpler. The macros have
@@ -277,6 +281,7 @@ void sfl_agent_set_agentSubId(SFLAgent *agent, u_int32_t subId);
    to get counters if it is not the same as the global ifIndex */
 void sfl_poller_set_bridgePort(SFLPoller *poller, u_int32_t port_no);
 u_int32_t sfl_poller_get_bridgePort(SFLPoller *poller);
+SFLPoller *sfl_agent_getPollerByBridgePort(SFLAgent *agent, u_int32_t port_no);
 
 /* call this to indicate a discontinuity with a counter like samplePool so that the
    sflow collector will ignore the next delta */