[ovs-dev] [PATCH 8/9] ovn-test: Add 'expr-to-packets' command.

Ben Pfaff blp at ovn.org
Thu Jan 5 15:47:01 UTC 2017


On Wed, Jan 04, 2017 at 06:13:10PM -0800, Justin Pettit wrote:
> Parses OVN expressions from stdin and prints out matching packets in
> hexadecimal on stdout.
> 
> Signed-off-by: Justin Pettit <jpettit at ovn.org>

'\0' looks weird here, a flow is not a character string:
        struct flow uflow;
        memset(&uflow, '\0', sizeof uflow);
But you can just remove the memset() call entirely because
expr_parse_microflow() always initializes the whole flow.

Acked-by: Ben Pfaff <blp at ovn.org>


More information about the dev mailing list