X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=utilities%2Fovs-controller.c;h=f97797472447539348946347178870cff49bdae8;hb=f14848742aca978783cc7953dc3949877ca25374;hp=66cc7ea02e53585ab22a9e040876580706573b36;hpb=e3c17733704fd54fa937ed5e1e8c4b51e00961f1;p=openvswitch diff --git a/utilities/ovs-controller.c b/utilities/ovs-controller.c index 66cc7ea0..f9779747 100644 --- a/utilities/ovs-controller.c +++ b/utilities/ovs-controller.c @@ -227,6 +227,7 @@ new_switch(struct switch_ *sw, struct vconn *vconn) cfg.mode = (action_normal ? LSW_NORMAL : learn_macs ? LSW_LEARN : LSW_FLOOD); + cfg.exact_flows = exact_flows; cfg.max_idle = set_up_flows ? max_idle : -1; cfg.default_flows = &default_flows; cfg.default_queue = default_queue; @@ -260,6 +261,7 @@ static void read_flow_file(const char *name) { enum nx_flow_format flow_format; + bool flow_mod_table_id; FILE *stream; stream = fopen(optarg, "r"); @@ -268,8 +270,10 @@ read_flow_file(const char *name) } flow_format = NXFF_OPENFLOW10; - while (parse_ofp_flow_mod_file(&default_flows, &flow_format, stream, - OFPFC_ADD)) { + flow_mod_table_id = false; + while (parse_ofp_flow_mod_file(&default_flows, + &flow_format, &flow_mod_table_id, + stream, OFPFC_ADD)) { continue; }