summaryrefslogtreecommitdiff
path: root/lib/ofp-msgs.c
diff options
context:
space:
mode:
authorJarno Rajahalme <jarno.rajahalme@nsn.com>2012-11-27 17:44:22 +0200
committerBen Pfaff <blp@nicira.com>2012-11-27 09:37:50 -0800
commit2e1ae2005ed347d2dfebd23fff40c54a1a2a6716 (patch)
treee8bfc3b61bd60017b5da871dfd0a0a62f7f8690d /lib/ofp-msgs.c
parent6ed3b860fe806fce26dfc760cb428a9a5432d329 (diff)
downloadopenvswitch-2e1ae2005ed347d2dfebd23fff40c54a1a2a6716.tar.gz
Initial OpenFlow 1.3 support
Initial OpenFlow 1.3 support with new include/openflow/openflow-1.3.h. Most of the messages that differ from 1.2 are implemented. OFPT_SET_ASYNC is implemented via NX_SET_ASYNC_CONFIG, other new message types are yet to be implemented. Stats replies that add duration fields are implemented at encode/decode level only. Test cases for implemented features are included. Remaining FIXME:s should not cause runtime aborts. Make check comes out clean. Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ofp-msgs.c')
-rw-r--r--lib/ofp-msgs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ofp-msgs.c b/lib/ofp-msgs.c
index 00e1a8448..d0f5da69c 100644
--- a/lib/ofp-msgs.c
+++ b/lib/ofp-msgs.c
@@ -265,6 +265,7 @@ ofphdrs_is_stat(const struct ofphdrs *hdrs)
hdrs->type == OFPT10_STATS_REPLY);
case OFP11_VERSION:
case OFP12_VERSION:
+ case OFP13_VERSION:
return (hdrs->type == OFPT11_STATS_REQUEST ||
hdrs->type == OFPT11_STATS_REPLY);
}
@@ -291,6 +292,7 @@ ofphdrs_len(const struct ofphdrs *hdrs)
case OFP11_VERSION:
case OFP12_VERSION:
+ case OFP13_VERSION:
if (hdrs->type == OFPT11_STATS_REQUEST ||
hdrs->type == OFPT11_STATS_REPLY) {
return (hdrs->stat == OFPST_VENDOR
@@ -704,6 +706,7 @@ ofpraw_stats_request_to_reply(enum ofpraw raw, uint8_t version)
break;
case OFP11_VERSION:
case OFP12_VERSION:
+ case OFP13_VERSION:
assert(hdrs.type == OFPT11_STATS_REQUEST);
hdrs.type = OFPT11_STATS_REPLY;
break;
@@ -880,6 +883,7 @@ ofpmp_flags__(const struct ofp_header *oh)
return &((struct ofp10_stats_msg *) oh)->flags;
case OFP11_VERSION:
case OFP12_VERSION:
+ case OFP13_VERSION:
return &((struct ofp11_stats_msg *) oh)->flags;
default:
NOT_REACHED();