X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utilities%2Fovs-ofctl.c;h=8da6e1a033cec188665140773576f9af8968e637;hb=f307eeb37640adb92cf92eb61ec26ac9ac30ac97;hp=0f1c67e69ca8fa2a9efd5a16215fcf98f37084a8;hpb=4f564f8dc77a40036b2552902ace44dfb274c36e;p=openvswitch diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 0f1c67e6..8da6e1a0 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -631,7 +631,8 @@ do_flow_mod__(int argc OVS_UNUSED, char *argv[], uint16_t command) list_init(&requests); flow_format = NXFF_OPENFLOW10; - parse_ofp_flow_mod_str(&requests, &flow_format, argv[2], command); + parse_ofp_flow_mod_str(&requests, &flow_format, argc > 2 ? argv[2] : "", + command); open_vconn(argv[1], &vconn); transact_multiple_noreply(vconn, &requests);