mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
Allow OFPACT_SET_IP_DSCP to act on both IPv4 and IPv6 packets.
This removes semantic differences between different OpenFlow versions, making it easier to translate between them. Also, rename OFPACT_SET_IPV4_DSCP to OFPACT_SET_IP_DSCP. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -697,7 +697,7 @@ parse_named_action(enum ofputil_action_code code,
|
||||
if (tos & ~IP_DSCP_MASK) {
|
||||
return xasprintf("%s: not a valid TOS", arg);
|
||||
}
|
||||
ofpact_put_SET_IPV4_DSCP(ofpacts)->dscp = tos;
|
||||
ofpact_put_SET_IP_DSCP(ofpacts)->dscp = tos;
|
||||
break;
|
||||
|
||||
case OFPUTIL_OFPAT11_DEC_NW_TTL:
|
||||
|
Reference in New Issue
Block a user