meta-flow: Fix icmp_code field's wildcard bit.
authorBen Pfaff <blp@nicira.com>
Tue, 27 Sep 2011 20:02:30 +0000 (13:02 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 3 Oct 2011 17:12:00 +0000 (10:12 -0700)
This bug caused any NXM flow that matched both ICMP code and ICMP type to
be rejected with NXBRC_NXM_DUP_TYPE.

lib/meta-flow.c

index 140f90224102b3e45390eb0f92657a56909838a7..6d2bfbd68abcb813251a24bd5c00e12f7e16a98e 100644 (file)
@@ -268,7 +268,7 @@ static const struct mf_field mf_fields[MFF_N_IDS] = {
     }, {
         MFF_ICMP_CODE, "icmp_code", NULL,
         MF_FIELD_SIZES(u8),
-        MFM_NONE, FWW_TP_SRC,
+        MFM_NONE, FWW_TP_DST,
         MFS_DECIMAL,
         MFP_ICMP_ANY,
         NXM_OF_ICMP_CODE,