X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fnetflow.c;h=37b18ffd3e3b911d218c335f6e602a0e5ad53ca4;hb=a0d8d6973b514143c41c202327f80a8bf27aee11;hp=83f71a4e681fffb3e1026bd41acb60de457b51b8;hpb=10a24935c9d382e4d85b05d9616843f3d3bb4983;p=openvswitch diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 83f71a4e..37b18ffd 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -33,7 +33,7 @@ #include "util.h" #include "vlog.h" -VLOG_DEFINE_THIS_MODULE(netflow) +VLOG_DEFINE_THIS_MODULE(netflow); #define NETFLOW_V5_VERSION 5 @@ -283,6 +283,14 @@ netflow_destroy(struct netflow *nf) } } +/* Initializes a new 'nf_flow' given that the caller has already cleared it to + * all-zero-bits. */ +void +netflow_flow_init(struct netflow_flow *nf_flow OVS_UNUSED) +{ + /* Nothing to do. */ +} + void netflow_flow_clear(struct netflow_flow *nf_flow) {