X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flearning-switch.h;h=96707b842186f74e795d4e25ad5facb902b15281;hb=6787c8cd1c5a4882e9370d3d0dad4590f781ae42;hp=8837d64706d772ad023c3266b718d79995fcc4df;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=openvswitch diff --git a/lib/learning-switch.h b/lib/learning-switch.h index 8837d647..96707b84 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,12 +18,17 @@ #define LEARNING_SWITCH_H 1 #include +#include +#include struct ofpbuf; struct rconn; -struct lswitch *lswitch_create(struct rconn *, bool learn_macs, int max_idle); -void lswitch_run(struct lswitch *, struct rconn *); +struct lswitch *lswitch_create(struct rconn *, bool learn_macs, + 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 *); void lswitch_wait(struct lswitch *); void lswitch_destroy(struct lswitch *); void lswitch_process_packet(struct lswitch *, struct rconn *,