[ovs-dev] [PATCH] flow: Convert tunnel IDs to host byte order for formatting.

Ethan Jackson ethan at nicira.com
Fri May 13 18:05:26 UTC 2011


Looks Good.

Ethan

On Fri, May 13, 2011 at 10:38, Ben Pfaff <blp at nicira.com> wrote:
> Reported-by: Pankaj Thakkar <thakkar at nicira.com>
> ---
>  lib/flow.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/flow.c b/lib/flow.c
> index 32157b8..0f54b2a 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),
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list