From 3a75cda939c7155ec9e12dd747983e37dee9b3e6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 4 Nov 2010 10:33:08 -0700 Subject: [PATCH] ofp-util: Actually map vendor codes to IDs correctly. Reported-by: Justin Pettit --- lib/ofp-util.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2