mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Add OF11 SET IP TTL action.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
committed by
Ben Pfaff
parent
ff14eb7ac9
commit
0c20dbe410
@@ -602,7 +602,7 @@ parse_named_action(enum ofputil_action_code code,
|
||||
char *error = NULL;
|
||||
uint16_t ethertype = 0;
|
||||
uint16_t vid = 0;
|
||||
uint8_t tos = 0, ecn;
|
||||
uint8_t tos = 0, ecn, ttl;
|
||||
uint8_t pcp = 0;
|
||||
|
||||
switch (code) {
|
||||
@@ -712,6 +712,15 @@ parse_named_action(enum ofputil_action_code code,
|
||||
ofpact_put_SET_IP_ECN(ofpacts)->ecn = ecn;
|
||||
break;
|
||||
|
||||
case OFPUTIL_OFPAT11_SET_NW_TTL:
|
||||
error = str_to_u8(arg, "TTL", &ttl);
|
||||
if (error) {
|
||||
return error;
|
||||
}
|
||||
|
||||
ofpact_put_SET_IP_TTL(ofpacts)->ttl = ttl;
|
||||
break;
|
||||
|
||||
case OFPUTIL_OFPAT11_DEC_NW_TTL:
|
||||
NOT_REACHED();
|
||||
|
||||
|
Reference in New Issue
Block a user