ofp-print: Verify size of OFPAT_ENQUEUE actions.
authorBen Pfaff <blp@nicira.com>
Wed, 8 Dec 2010 00:58:41 +0000 (16:58 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Dec 2010 01:11:19 +0000 (17:11 -0800)
This fixes a bug, although not a very serious one.

lib/ofp-print.c

index 28f2f3c..30b9b6b 100644 (file)
@@ -298,6 +298,10 @@ ofp_print_action(struct ds *string, const struct ofp_action_header *ah,
         [OFPAT_SET_TP_DST] = {
             sizeof(struct ofp_action_tp_port),
             sizeof(struct ofp_action_tp_port),
+        },
+        [OFPAT_ENQUEUE] = {
+            sizeof(struct ofp_action_enqueue),
+            sizeof(struct ofp_action_enqueue),
         }
         /* OFPAT_VENDOR is not here, since it would blow up the array size. */
     };