diff options
author | Justin Pettit <jpettit@nicira.com> | 2010-07-28 15:18:14 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2010-07-30 00:05:33 -0700 |
commit | aaaa7553a9b7fef47436e96fb0177981b09e4a83 (patch) | |
tree | 0f0e4dc5bb13935d5dc06ad4fc34c8ccf509391f /lib/learning-switch.h | |
parent | f22716dcca299b863dd72eb193fb1283c5f686da (diff) |
learning-switch: Add ability to define default flows
Add an argument to the function to create a learning switch, which
defines default flows to be pushed down to connecting switches. It does
nothing to enforce that they remain intact. It only pushes flows on
switch connection.
Diffstat (limited to 'lib/learning-switch.h')
-rw-r--r-- | lib/learning-switch.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/learning-switch.h b/lib/learning-switch.h index a2ac53b9..3b414a5b 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -19,13 +19,14 @@ #include <stdbool.h> #include <stdint.h> +#include <stdio.h> struct ofpbuf; struct rconn; struct lswitch *lswitch_create(struct rconn *, bool learn_macs, - bool exact_flows, int max_idle, - bool action_normal); + bool exact_flows, int max_idle, + bool action_normal, FILE *default_flows); void lswitch_set_queue(struct lswitch *sw, uint32_t queue); void lswitch_run(struct lswitch *, struct rconn *); void lswitch_wait(struct lswitch *); |