ofp-parse: Do not exit() upon a parse error.
authorBen Pfaff <blp@nicira.com>
Mon, 8 Jul 2013 17:15:00 +0000 (10:15 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 8 Jul 2013 17:15:00 +0000 (10:15 -0700)
commitbdda5aca7b376bcc8c88072d00011a9da04af65c
tree1422bc448e2a094e0d1e988d29e7fe30600f13eb
parent5ed2d819bb27cd8d899ed060460c8a28b481cf2f
ofp-parse: Do not exit() upon a parse error.

Until now, failure to parse a flow in the ofp-parse module has caused the
program to abort immediately with a fatal error.  This makes it hard to
use these functions from any long-lived program.  This commit fixes the
problem.

Signed-off-by: Ben Pfaff <blp@nicira.com>
20 files changed:
lib/bundle.c
lib/bundle.h
lib/dynamic-string.c
lib/dynamic-string.h
lib/learn.c
lib/learn.h
lib/meta-flow.c
lib/meta-flow.h
lib/multipath.c
lib/multipath.h
lib/nx-match.c
lib/nx-match.h
lib/ofp-parse.c
lib/ofp-parse.h
tests/learn.at
tests/ofproto-dpif.at
tests/test-bundle.c
tests/test-multipath.c
utilities/ovs-controller.c
utilities/ovs-ofctl.c