From: Ben Pfaff Date: Thu, 4 Nov 2010 17:33:08 +0000 (-0700) Subject: ofp-util: Actually map vendor codes to IDs correctly. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a75cda939c7155ec9e12dd747983e37dee9b3e6;p=openvswitch ofp-util: Actually map vendor codes to IDs correctly. Reported-by: Justin Pettit --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 9dc5b2a5..c95e7c6d 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -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; }