X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-ofctl.c;h=e46e1a2dbe23f0ccab8d7beeb40f7fbe692e7a5e;hb=e94b92baf63322117e22a7432e1740afa3073587;hp=1901e242a2369c47fb4c59744a99d7487c50159b;hpb=6d37aaf186c9f4595258903241f4fa0175ecf6dd;p=sliver-openvswitch.git diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 1901e242a..e46e1a2db 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -431,7 +431,7 @@ str_to_port_no(const char *vconn_name, const char *str) ofpbuf_delete(reply); vconn_close(vconn); - return port_idx; + return ntohs(osf->ports[port_idx].port_no); } static void