X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fnetflow.c;h=381ff8efcf23a7a895e48d64e19f8ffb6738e67a;hb=4cd78906a0c30cc2de0a6a0370c6b2cf1b7853b2;hp=c237ef25f4f63ac79b3648cf290b0898368ec86d;hpb=2c360fbb2777fba6d35599e4b53287e2ecb26fa9;p=openvswitch diff --git a/ofproto/netflow.c b/ofproto/netflow.c index c237ef25..381ff8ef 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));