X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-parse.c;h=0fbe9f09a8e4927aa5a018f6f16b6d85ca316533;hb=b55f2f799b6340a89fd282ac28f6eff8d8492bf5;hp=915dc90a03ca69f5470b824cee618d980c85ccfb;hpb=aee0979b2c578f4c8a130f4cd5bf2c6ce4949431;p=sliver-openvswitch.git diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 915dc90a0..0fbe9f09a 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -179,12 +179,13 @@ static char * WARN_UNUSED_RESULT parse_enqueue(char *arg, struct ofpbuf *ofpacts) { char *sp = NULL; - char *port = strtok_r(arg, ":q", &sp); + char *port = strtok_r(arg, ":q,", &sp); char *queue = strtok_r(NULL, "", &sp); struct ofpact_enqueue *enqueue; if (port == NULL || queue == NULL) { - return xstrdup("\"enqueue\" syntax is \"enqueue:PORT:QUEUE\""); + return xstrdup("\"enqueue\" syntax is \"enqueue:PORT:QUEUE\" or " + "\"enqueue(PORT,QUEUE)\""); } enqueue = ofpact_put_ENQUEUE(ofpacts);