From: Ben Pfaff Date: Wed, 8 Dec 2010 00:58:41 +0000 (-0800) Subject: ofp-print: Verify size of OFPAT_ENQUEUE actions. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dab45bfd5748e7d871ae312df6e9b7ce89a8f46c;p=openvswitch ofp-print: Verify size of OFPAT_ENQUEUE actions. This fixes a bug, although not a very serious one. --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 28f2f3ce..30b9b6ba 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -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. */ };