X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fnetflow.c;h=37b18ffd3e3b911d218c335f6e602a0e5ad53ca4;hb=4faaba2b90979e1106b8c9b0430481f2cc62364d;hp=d9f52ba5f344ef24f9808b4b2b6f8f8e4186e711;hpb=c06955bc63bf504fc6fa87fd9780993bc45cad09;p=openvswitch diff --git a/ofproto/netflow.c b/ofproto/netflow.c index d9f52ba5..37b18ffd 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -20,6 +20,7 @@ #include #include #include +#include "byte-order.h" #include "collectors.h" #include "flow.h" #include "netflow.h" @@ -31,9 +32,8 @@ #include "timeval.h" #include "util.h" #include "vlog.h" -#include "xtoxll.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) {