X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fnetflow.c;h=77572fe58be1428378f6ed3472363e73a06e48ba;hb=19993ef3caac9964c2bef6e31fc8699c4f4b53c8;hp=37b18ffd3e3b911d218c335f6e602a0e5ad53ca4;hpb=d6de72a12fad59941409ac3ff57f1660ac5a28bb;p=sliver-openvswitch.git diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 37b18ffd3..77572fe58 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);