X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=cb5bc735d4c9545d3fc03b9b24d2da23a4001170;hb=76ec08e01b4075b2e6d76ecbc5872513dd5b873f;hp=402b38d01c829f9b272e6e1854074734e3dbfcce;hpb=4bd2a6a0b702131db30c170c3d7558fe68409017;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 402b38d01..cb5bc735d 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -5790,7 +5790,7 @@ handle_openflow__(struct ofconn *ofconn, const struct ofpbuf *msg) /* FIXME: Change the following once they are implemented: */ case OFPTYPE_QUEUE_GET_CONFIG_REQUEST: case OFPTYPE_TABLE_FEATURES_STATS_REQUEST: - return OFPERR_OFPBRC_BAD_TYPE; + /* fallthrough */ case OFPTYPE_HELLO: case OFPTYPE_ERROR: @@ -5821,7 +5821,11 @@ handle_openflow__(struct ofconn *ofconn, const struct ofpbuf *msg) case OFPTYPE_METER_FEATURES_STATS_REPLY: case OFPTYPE_TABLE_FEATURES_STATS_REPLY: default: - return OFPERR_OFPBRC_BAD_TYPE; + if (ofpmsg_is_stat_request(oh)) { + return OFPERR_OFPBRC_BAD_STAT; + } else { + return OFPERR_OFPBRC_BAD_TYPE; + } } }