ovs-ofctl: Use 65535 instead of 0 for OFPP_CONTROLLER max_len.
[sliver-openvswitch.git] / utilities / ovs-ofctl.c
index a39e99f..44f214a 100644 (file)
@@ -617,6 +617,8 @@ str_to_action(char *str, struct ofpbuf *b)
              * packet to the controller. */
             if (arg && (strspn(act, "0123456789") == strlen(act))) {
                oao->max_len = htons(str_to_u32(arg));
+            } else {
+                oao->max_len = htons(UINT16_MAX);
             }
         } else if (parse_port_name(act, &port)) {
             put_output_action(b, port);