diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2013-08-20 18:41:45 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-27 21:58:55 -0700 |
commit | db0b6c2913dfda237f07881b059ba267f3388600 (patch) | |
tree | 5358254ea796cd55e14c6a811966faf2ba2ba46d /lib/learning-switch.h | |
parent | 89454bf477d1dc95357792677ccbd4d483ab42d8 (diff) |
lib: Keep track of usable protocols while parsing.
Keep track of usable protocols while parsing actions and matches,
rather than checking for them afterwards. This fixes silently discarded
meter and goto table instructions when not explicitly specifying the
protocol to use.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/learning-switch.h')
-rw-r--r-- | lib/learning-switch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/learning-switch.h b/lib/learning-switch.h index dcfb5a27..b3a5d13e 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -20,6 +20,7 @@ #include <stdbool.h> #include <stdint.h> #include <stdio.h> +#include "ofp-util.h" struct ofpbuf; struct rconn; @@ -50,6 +51,7 @@ struct lswitch_config { * to set up the flow table. */ const struct ofputil_flow_mod *default_flows; size_t n_default_flows; + enum ofputil_protocol usable_protocols; /* The OpenFlow queue to use by default. Use UINT32_MAX to avoid * specifying a particular queue. */ |