mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ofp-util: Actually map vendor codes to IDs correctly.
Reported-by: Justin Pettit <jpettit@nicira.com>
This commit is contained in:
@@ -829,6 +829,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user