The structures declared in ofp-msgs.h for messages definitions should not include an OpenFlow header (its presence is implied), but the definition of these messages did. This commit fixes the definitions.
The visible bug was really minor here: messages of these kinds without any TLVs would be rejected by the OpenFlow parser. But OVS never sends these messages without TLVs, so probably no one ever noticed this. (Also, the OVS support for OF1.4 is still incomplete and experimental.) Signed-off-by: Ben Pfaff <b...@ovn.org> --- include/openflow/openflow-1.4.h | 11 ----------- lib/ofp-msgs.h | 6 +++--- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/include/openflow/openflow-1.4.h b/include/openflow/openflow-1.4.h index e600cff..daf6cf4 100644 --- a/include/openflow/openflow-1.4.h +++ b/include/openflow/openflow-1.4.h @@ -245,17 +245,6 @@ struct ofp14_async_config_prop_header { ovs_be16 length; /* Length in bytes of this property. */ }; OFP_ASSERT(sizeof(struct ofp14_async_config_prop_header) == 4); - -/* Asynchronous message configuration. - * OFPT_GET_ASYNC_REPLY or OFPT_SET_ASYNC. - */ -struct ofp14_async_config { - struct ofp_header header; - /* Async config Property list - 0 or more */ - struct ofp14_async_config_prop_header properties[0]; -}; -OFP_ASSERT(sizeof(struct ofp14_async_config) == 8); - /* Request forward reason */ enum ofp14_requestforward_reason { OFPRFR_GROUP_MOD = 0, /* Forward group mod requests. */ diff --git a/lib/ofp-msgs.h b/lib/ofp-msgs.h index 6770fa4..2c4a916 100644 --- a/lib/ofp-msgs.h +++ b/lib/ofp-msgs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, 2014, 2015 Nicira, Inc. + * Copyright (c) 2012, 2013, 2014, 2015, 2016 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -232,13 +232,13 @@ enum ofpraw { OFPRAW_OFPT14_GET_ASYNC_REQUEST, /* OFPT 1.3 (27): struct ofp13_async_config. */ OFPRAW_OFPT13_GET_ASYNC_REPLY, - /* OFPT 1.4+ (27): struct ofp14_async_config, uint8_t[8][]. */ + /* OFPT 1.4+ (27): uint8_t[8][]. */ OFPRAW_OFPT14_GET_ASYNC_REPLY, /* OFPT 1.3 (28): struct ofp13_async_config. */ OFPRAW_OFPT13_SET_ASYNC, /* NXT 1.0+ (19): struct nx_async_config. */ OFPRAW_NXT_SET_ASYNC_CONFIG, - /* OFPT 1.4+ (28): struct ofp14_async_config, uint8_t[8][]. */ + /* OFPT 1.4+ (28): uint8_t[8][]. */ OFPRAW_OFPT14_SET_ASYNC, /* OFPT 1.3+ (29): struct ofp13_meter_mod, uint8_t[8][]. */ -- 2.1.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev