X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=e7e040126eb12c13259b78e2d13e66e7f43673be;hb=2e0525bcf5ba3f348795f303f8cb69c9fc033ff3;hp=b554cc92db649747df56ab44b8ca9455e333b741;hpb=ada3428f0906c835d2f7e84745b0a477bade5a11;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index b554cc92..e7e04012 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1943,7 +1943,7 @@ handle_set_config(struct ofconn *ofconn, const struct ofp_switch_config *osc) } } ofconn_set_invalid_ttl_to_controller(ofconn, - (flags & OFPC_INVALID_TTL_TO_CONTROLLER)); + (flags & OFPC_INVALID_TTL_TO_CONTROLLER)); ofconn_set_miss_send_len(ofconn, ntohs(osc->miss_send_len)); @@ -3064,7 +3064,7 @@ handle_role_request(struct ofconn *ofconn, const struct ofp_header *oh) role = ntohl(nrr->role); if (role != NX_ROLE_OTHER && role != NX_ROLE_MASTER && role != NX_ROLE_SLAVE) { - return OFPERR_NXBRC_BAD_ROLE; + return OFPERR_OFPRRFC_BAD_ROLE; } if (ofconn_get_role(ofconn) != role