From cd4dabfa51cd1e846b208db1554c560ba8816e8f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 Mar 2009 17:32:53 -0800 Subject: [PATCH] secchan: Flush datapath flow table when initializing the switch. The switch can't recover the entire OpenFlow state from the datapath, so it has the choice of either guessing at some missing information (which seems undesirable) or just flushing the table. The latter is easier, so do that. --- secchan/ofproto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/secchan/ofproto.c b/secchan/ofproto.c index b14556c3..7828b134 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -222,6 +222,7 @@ ofproto_create(const char *datapath, struct ofproto **ofprotop) dpif_close(&dpif); return error; } + dpif_flow_flush(&dpif); /* Start monitoring datapath ports for status changes. */ error = dpifmon_create(&dpif, &dpifmon); -- 2.30.2