From eb0b3c3f50af7f15d25015159bcd880045a092f5 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Thu, 7 Nov 2013 17:52:55 +0000 Subject: [PATCH] of_controller_v4: set max_len field on ofp_action_output when needed This change makes the code agree with the comment just above it: when asking the switch to output packets to the controller, use the specified max_len value. --- scripts/of_controller_v4.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/of_controller_v4.erl b/scripts/of_controller_v4.erl index 00f2c39..e1667c6 100644 --- a/scripts/of_controller_v4.erl +++ b/scripts/of_controller_v4.erl @@ -997,7 +997,7 @@ flow_mod_output_to_port(InPort, OutPort, MaxLen) -> name = in_port, value = <>}, Match = #ofp_match{fields = [MatchField]}, - Action = case InPort =:= controller of + Action = case OutPort =:= controller of true -> #ofp_action_output{port = OutPort, max_len = MaxLen}; false ->