git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovs-ofctl: Fix return value of str_to_port_no().
[sliver-openvswitch.git]
/
utilities
/
ovs-ofctl.c
diff --git
a/utilities/ovs-ofctl.c
b/utilities/ovs-ofctl.c
index
1901e24
..
e46e1a2
100644
(file)
--- 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