X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fnetflow.h;h=e89b75e2c87ee57949009587695af0df6d4e72e6;hb=cfc50ae514f805dcd9c14589f21158185424daf6;hp=6493841cf812c6aa1231fa4007193c6058a38969;hpb=8bfaca5b9a63a4900c3c99fc6a97e2b821870f66;p=sliver-openvswitch.git diff --git a/ofproto/netflow.h b/ofproto/netflow.h index 6493841cf..e89b75e2c 100644 --- a/ofproto/netflow.h +++ b/ofproto/netflow.h @@ -41,7 +41,10 @@ struct netflow_options { #define NF_OUT_DROP OFP_PORT_C(UINT16_MAX - 2) struct netflow *netflow_create(void); -void netflow_destroy(struct netflow *); +struct netflow *netflow_ref(const struct netflow *); +void netflow_unref(struct netflow *); +bool netflow_exists(void); + int netflow_set_options(struct netflow *, const struct netflow_options *); void netflow_expire(struct netflow *, struct flow *); @@ -52,7 +55,7 @@ void netflow_mask_wc(struct flow *, struct flow_wildcards *); void netflow_flow_clear(struct netflow *netflow, struct flow *flow); -void netflow_flow_update(struct netflow *nf, struct flow *flow, +void netflow_flow_update(struct netflow *nf, const struct flow *flow, ofp_port_t output_iface, const struct dpif_flow_stats *);