summaryrefslogtreecommitdiff
path: root/ofproto/netflow.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-05-06 11:27:05 -0700
committerBen Pfaff <blp@nicira.com>2011-05-16 13:40:47 -0700
commitd84d4b88d26e3f37ce24f1d3eebe0d70ef264f73 (patch)
treed53a3f9545711b45ccd43c33bb705767adf695ab /ofproto/netflow.c
parent5eba3806a3a6e0531297e3cd763e23e8c1355abb (diff)
downloadopenvswitch-d84d4b88d26e3f37ce24f1d3eebe0d70ef264f73.tar.gz
Fix incorrect byte order annotations.
These are not actual bugs, just deceptive use of the wrong function or type. Found by sparse.
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 c237ef25f..381ff8efc 100644
--- a/ofproto/netflow.c
+++ b/ofproto/netflow.c
@@ -133,7 +133,7 @@ gen_netflow_rec(struct netflow *nf, struct netflow_flow *nf_flow,
nf_rec = ofpbuf_put_zeros(&nf->packet, sizeof *nf_rec);
nf_rec->src_addr = expired->flow.nw_src;
nf_rec->dst_addr = expired->flow.nw_dst;
- nf_rec->nexthop = htons(0);
+ nf_rec->nexthop = htonl(0);
if (nf->add_id_to_iface) {
uint16_t iface = (nf->engine_id & 0x7f) << 9;
nf_rec->input = htons(iface | (expired->flow.in_port & 0x1ff));