From 8991649e6c2af1e18612367aafddd800d0e496a0 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 6e0e41ff9..8f1625cd2 100644 --- 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; } -- 2.47.0