lib/ofp-actions: Silently discard set ip ecn/ttl actions on OpenFlow10.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 9 Apr 2014 18:13:57 +0000 (11:13 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 9 Apr 2014 18:13:57 +0000 (11:13 -0700)
It is better to not abort().

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.c

index 5a3bf70..ce14004 100644 (file)
@@ -2589,6 +2589,8 @@ ofpact_to_openflow10(const struct ofpact *a, struct ofpbuf *out)
          * follow this action. */
         break;
 
+    case OFPACT_SET_IP_ECN:
+    case OFPACT_SET_IP_TTL:
     case OFPACT_CLEAR_ACTIONS:
     case OFPACT_WRITE_ACTIONS:
     case OFPACT_GOTO_TABLE:
@@ -2611,8 +2613,6 @@ ofpact_to_openflow10(const struct ofpact *a, struct ofpbuf *out)
     case OFPACT_STACK_PUSH:
     case OFPACT_STACK_POP:
     case OFPACT_DEC_TTL:
-    case OFPACT_SET_IP_ECN:
-    case OFPACT_SET_IP_TTL:
     case OFPACT_SET_MPLS_LABEL:
     case OFPACT_SET_MPLS_TC:
     case OFPACT_SET_MPLS_TTL: