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:
c990a92
)
ofp-util: Actually map vendor codes to IDs correctly.
author
Ben Pfaff
<blp@nicira.com>
Thu, 4 Nov 2010 17:33:08 +0000
(10:33 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 4 Nov 2010 17:37:30 +0000
(10:37 -0700)
Reported-by: Justin Pettit <jpettit@nicira.com>
lib/ofp-util.c
patch
|
blob
|
history
diff --git
a/lib/ofp-util.c
b/lib/ofp-util.c
index
6e0e41f
..
8f1625c
100644
(file)
--- a/
lib/ofp-util.c
+++ b/
lib/ofp-util.c
@@
-845,6
+845,8
@@
vendor_code_to_id(uint8_t code)
{
switch (code) {
#define OFPUTIL_VENDOR(NAME, VENDOR_ID) case NAME: return VENDOR_ID;
+ OFPUTIL_VENDORS
+#undef OFPUTIL_VENDOR
default:
return UINT32_MAX;
}