From: Tetsuo NAKAGAWA Date: Sat, 20 Feb 2010 10:52:46 +0000 (-0800) Subject: ovs-dpctl: Fix setting of packet length for "controller" action X-Git-Tag: v1.0.0~259^2~87 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c9a0b820c1ff5b20f572198cda241d5cd557320;p=sliver-openvswitch.git ovs-dpctl: Fix setting of packet length for "controller" action --- diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 69f8adfd9..9a75969bc 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -643,7 +643,7 @@ str_to_action(char *str, struct ofpbuf *b) /* Unless a numeric argument is specified, we send the whole * packet to the controller. */ - if (arg && (strspn(act, "0123456789") == strlen(act))) { + if (arg && (strspn(arg, "0123456789") == strlen(arg))) { oao->max_len = htons(str_to_u32(arg)); } else { oao->max_len = htons(UINT16_MAX);