From 408cae9478ac7463772760257a77a173982eed00 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 12 Mar 2009 14:45:36 -0700 Subject: [PATCH] secchan: Treat invalid table IDs in stats requests as requests for no flows. Before, we treated invalid table IDs as requests for any flows in the table at all, but it makes more sense to treat them as requests for no flows at all. (The value 0xff is explicitly defined by OpenFlow to mean "all tables".) --- secchan/ofproto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/secchan/ofproto.c b/secchan/ofproto.c index f58368a8..c3079b07 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -1998,7 +1998,8 @@ table_id_to_include(uint8_t table_id) { return (table_id == TABLEID_HASH ? CLS_INC_EXACT : table_id == TABLEID_CLASSIFIER ? CLS_INC_WILD - : CLS_INC_ALL); + : table_id == 0xff ? CLS_INC_ALL + : 0); } static int -- 2.30.2