From c13736901490f0b3963ef7192ae2a1bdbbc64ae8 Mon Sep 17 00:00:00 2001 From: wgrayson Date: Thu, 27 May 2021 17:22:29 -0700 Subject: [PATCH] Add OF meter numbering const Signed-off-by: wgrayson --- openflow13/meter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openflow13/meter.go b/openflow13/meter.go index 9f3898f..7c3e572 100644 --- a/openflow13/meter.go +++ b/openflow13/meter.go @@ -25,6 +25,12 @@ const ( OFPMF13_BURST = 0b0100 /* Do burst size. */ OFPMF13_STATS = 0b1000 /* Collect statistics. */ + /* Meter numbering. Flow meters can use any number up to OFPM_MAX. */ + OFPM13_MAX = 0xffff0000 /* Last usable meter. */ + OFPM13_SLOWPATH = 0xfffffffd /* Meter for slow datapath. */ + OFPM13_CONTROLLER = 0xfffffffe /* Meter for controller connection. */ + OFPM13_ALL = 0xffffffff /* Represents all meters for stat requests commands. */ + METER_BAND_HEADER_LEN = 12 METER_BAND_LEN = 16 )