mirror of
https://github.com/openvswitch/ovs
synced 2025-10-17 14:28:02 +00:00
vconn: Fix byte-swapping of message type when validating OpenFlow actions.
It seems really strange that this one slipped through. Perhaps this means that we have never tested with any action other than OFPAT_OUTPUT (which has value 0 and thus is not affected by byte-swapping).
This commit is contained in:
committed by
Ben Pfaff
parent
b16fdafe57
commit
dc6fe1d7ee
@@ -1247,7 +1247,7 @@ check_action(const union ofp_action *a, unsigned int len, int max_ports)
|
||||
{
|
||||
int error;
|
||||
|
||||
switch (a->type) {
|
||||
switch (ntohs(a->type)) {
|
||||
case OFPAT_OUTPUT:
|
||||
error = check_action_port(ntohs(a->output.port), max_ports);
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user