From: Ben Pfaff Date: Fri, 13 May 2011 17:38:35 +0000 (-0700) Subject: flow: Convert tunnel IDs to host byte order for formatting. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19997ceee06cec2ce1f36ebfc225fa379b6b1ed0;p=openvswitch flow: Convert tunnel IDs to host byte order for formatting. Reported-by: Pankaj Thakkar --- diff --git a/lib/flow.c b/lib/flow.c index 534a3997..754c0de0 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -456,7 +456,7 @@ void flow_format(struct ds *ds, const struct flow *flow) { ds_put_format(ds, "tunnel%#"PRIx64":in_port%04"PRIx16":tci(", - flow->tun_id, flow->in_port); + ntohll(flow->tun_id), flow->in_port); if (flow->vlan_tci) { ds_put_format(ds, "vlan%"PRIu16",pcp%d", vlan_tci_to_vid(flow->vlan_tci),