X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-msgs.c;fp=lib%2Fofp-msgs.c;h=d0f5da69c7efe82640b116f3dc4047f9f9383eaf;hb=2e1ae2005ed347d2dfebd23fff40c54a1a2a6716;hp=00e1a84481a3fa96238fde092e899cc3a8a2adb1;hpb=6ed3b860fe806fce26dfc760cb428a9a5432d329;p=openvswitch diff --git a/lib/ofp-msgs.c b/lib/ofp-msgs.c index 00e1a844..d0f5da69 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();