diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-06-01 18:07:39 -0700 |
---|---|---|
committer | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-06-01 18:07:39 -0700 |
commit | 7ac27a044457b560836f6dc9c11443ba7e02045d (patch) | |
tree | ac1963817de9841059ff88ea1f619ac05116a84b /lib/ofp-print.c | |
parent | 186120da7fc0f20d93778623a006c152f7cd5e90 (diff) | |
download | openvswitch-7ac27a044457b560836f6dc9c11443ba7e02045d.tar.gz |
bundles: Validate bundled messages.
OpenFlow bundle messages should be decoded and validated at the time
they are added to the bundle. This commit does this for flow mod and
port mod messages.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ofp-print.c')
-rw-r--r-- | lib/ofp-print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c index cec074f1e..d773dca4f 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2657,7 +2657,7 @@ ofp_print_bundle_add(struct ds *s, const struct ofp_header *oh, int verbosity) struct ofputil_bundle_add_msg badd; char *msg; - error = ofputil_decode_bundle_add(oh, &badd); + error = ofputil_decode_bundle_add(oh, &badd, NULL); if (error) { ofp_print_error(s, error); return; |