X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fnetflow.c;h=77572fe58be1428378f6ed3472363e73a06e48ba;hb=0b13821fe00d918e24c71419355a10b65081a71a;hp=37b18ffd3e3b911d218c335f6e602a0e5ad53ca4;hpb=d6de72a12fad59941409ac3ff57f1660ac5a28bb;p=openvswitch diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 37b18ffd..77572fe5 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -148,7 +148,7 @@ gen_netflow_rec(struct netflow *nf, struct netflow_flow *nf_flow, nf_rec->init_time = htonl(nf_flow->created - nf->boot_time); nf_rec->used_time = htonl(MAX(nf_flow->created, expired->used) - nf->boot_time); - if (expired->flow.nw_proto == IP_TYPE_ICMP) { + if (expired->flow.nw_proto == IPPROTO_ICMP) { /* In NetFlow, the ICMP type and code are concatenated and * placed in the 'dst_port' field. */ uint8_t type = ntohs(expired->flow.tp_src);