summaryrefslogtreecommitdiff
path: root/ofproto/netflow.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2011-02-02 11:33:20 -0800
committerJustin Pettit <jpettit@nicira.com>2011-02-02 11:50:17 -0800
commit6767a2cce9a6412b3a41a927c4d56b9f0e1ec36f (patch)
treed517a57ed0a12e15afd43a09b6af0f393b5caf6d /ofproto/netflow.c
parentff55ea1f29360533699edb77747a919505282057 (diff)
downloadopenvswitch-6767a2cce9a6412b3a41a927c4d56b9f0e1ec36f.tar.gz
lib: Replace IP_TYPE_ references with IPPROTO_.
A few common IP protocol types were defined in "lib/packets.h". However, we already assume the existence of <netinet/in.h> which contains a more exhaustive list and should be available on POSIX systems.
Diffstat (limited to 'ofproto/netflow.c')
-rw-r--r--ofproto/netflow.c2
1 files changed, 1 insertions, 1 deletions
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);