flow: Convert tunnel IDs to host byte order for formatting.
authorBen Pfaff <blp@nicira.com>
Fri, 13 May 2011 17:38:35 +0000 (10:38 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 24 May 2011 18:30:12 +0000 (11:30 -0700)
Reported-by: Pankaj Thakkar <thakkar@nicira.com>
lib/flow.c

index 534a39975d19e23d8485666a6bfcb8bd3c95e326..754c0de0ba19cf8d9b1f12cf6101a677816baa22 100644 (file)
@@ -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),