git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d6c149
)
odp-util: Parse the in_port as a name correctly.
author
Gurucharan Shetty
<gshetty@nicira.com>
Mon, 23 Sep 2013 21:13:35 +0000
(14:13 -0700)
committer
Gurucharan Shetty
<gshetty@nicira.com>
Tue, 24 Sep 2013 22:57:35 +0000
(15:57 -0700)
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c
patch
|
blob
|
history
diff --git
a/lib/odp-util.c
b/lib/odp-util.c
index
5ca8baf
..
aec4196
100644
(file)
--- a/
lib/odp-util.c
+++ b/
lib/odp-util.c
@@
-1665,7
+1665,7
@@
parse_odp_key_mask_attr(const char *s, const struct simap *port_names,
int name_len;
name = s + 8;
- name_len = strcspn(
s
, ")");
+ name_len = strcspn(
name
, ")");
node = simap_find_len(port_names, name, name_len);
if (node) {
nl_msg_put_u32(key, OVS_KEY_ATTR_IN_PORT, node->data);