X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fflow.c;h=87ca0f282d437c4c6c61a946eec18007cdb6ebfd;hb=c62b0064a0cdbd5f3ecfc2cda90999a9d7ec551d;hp=38dee7b061f9f2aa36fbb1fa3675c0628af5eea1;hpb=36956a7d33c9ee204fcb184484a5aaacbd9ecef8;p=openvswitch diff --git a/lib/flow.c b/lib/flow.c index 38dee7b0..87ca0f28 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -22,9 +22,9 @@ #include #include "byte-order.h" #include "coverage.h" +#include "dpif.h" #include "dynamic-string.h" #include "hash.h" -#include "ofp-util.h" #include "ofpbuf.h" #include "openflow/openflow.h" #include "openvswitch/datapath-protocol.h" @@ -235,9 +235,9 @@ flow_extract(struct ofpbuf *packet, ovs_be64 tun_id, uint16_t in_port, */ void flow_extract_stats(const struct flow *flow, struct ofpbuf *packet, - struct odp_flow_stats *stats) + struct dpif_flow_stats *stats) { - memset(stats, '\0', sizeof(*stats)); + memset(stats, 0, sizeof(*stats)); if ((flow->dl_type == htons(ETH_TYPE_IP)) && packet->l4) { if ((flow->nw_proto == IP_TYPE_TCP) && packet->l7) {