Implement subnet mask matching in OpenFlow.
[openvswitch] / datapath / table-hash.c
index 1c0c6e73823c5bb2875e125e7b5aeb0030361c00..46acf80e39f256bd84a1303cb20076b11d7a5d62 100644 (file)
@@ -169,7 +169,7 @@ static int table_hash_iterate(struct sw_table *swt,
 
                for (i = position->private[0]; i <= th->bucket_mask; i++) {
                        struct sw_flow *flow = th->buckets[i];
-                       if (flow && flow_matches(key, &flow->key)) {
+                       if (flow && flow_matches_1wild(&flow->key, key)) {
                                int error = callback(flow, private);
                                if (error) {
                                        position->private[0] = i;