projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add error codes for Open Flow v1.2
[openvswitch]
/
ofproto
/
ofproto.c
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index b554cc92db649747df56ab44b8ca9455e333b741..e7e040126eb12c13259b78e2d13e66e7f43673be 100644
(file)
--- 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,
}
}
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));
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) {
role = ntohl(nrr->role);
if (role != NX_ROLE_OTHER && role != NX_ROLE_MASTER
&& role != NX_ROLE_SLAVE) {
- return OFPERR_
NXBR
C_BAD_ROLE;
+ return OFPERR_
OFPRRF
C_BAD_ROLE;
}
if (ofconn_get_role(ofconn) != role
}
if (ofconn_get_role(ofconn) != role