]> git.proxmox.com Git - ovs.git/commitdiff
Properly print drop_spoofed_arp actions when decoding OpenFlow and ODP.
authorBen Pfaff <blp@nicira.com>
Wed, 15 Sep 2010 20:26:08 +0000 (13:26 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 15 Sep 2010 20:26:46 +0000 (13:26 -0700)
Also fix formatting of unknown Nicira actions in OpenFlow.

lib/odp-util.c
lib/ofp-print.c

index 442c939a7d5096ca59d0579176653e8a92e1c952..798e42540a7dd1b6199965810979f519bff1fb9f 100644 (file)
@@ -95,6 +95,9 @@ format_odp_action(struct ds *ds, const union odp_action *a)
     case ODPAT_POP_PRIORITY:
         ds_put_cstr(ds, "pop_priority");
         break;
+    case ODPAT_DROP_SPOOFED_ARP:
+        ds_put_cstr(ds, "drop_spoofed_arp");
+        break;
     default:
         ds_put_format(ds, "***bad action 0x%"PRIx16"***", a->type);
         break;
index 870487816c641162a63ccfc5b770b099d3872d2a..78f3649ba4cd1162da6d2c0b74102cada9ee8be5 100644 (file)
@@ -200,8 +200,12 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah)
         break;
     }
 
+    case NXAST_DROP_SPOOFED_ARP:
+        ds_put_cstr(string, "drop_spoofed_arp");
+        break;
+
     default:
-        ds_put_format(string, "***unknown Nicira action:%d***\n",
+        ds_put_format(string, "***unknown Nicira action:%d***",
                       ntohs(nah->subtype));
     }
 }