X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fmeta-flow.c;h=3713ca4e845f9146c3293d65c526312a64c407bc;hb=5921e99ab1d0b6e0964b79a29107c65b5fb24f80;hp=c50cfc5359215119ae0210481cf232c4a9b1afd5;hpb=479df1769d51351d031482acaaf0c713726c05d1;p=openvswitch diff --git a/lib/meta-flow.c b/lib/meta-flow.c index c50cfc53..3713ca4e 100644 --- a/lib/meta-flow.c +++ b/lib/meta-flow.c @@ -827,7 +827,7 @@ mf_are_prereqs_ok(const struct mf_field *mf, const struct flow *flow) case MFP_IPV6: return flow->dl_type == htons(ETH_TYPE_IPV6); case MFP_VLAN_VID: - return flow->vlan_tci & htons(VLAN_CFI); + return (flow->vlan_tci & htons(VLAN_CFI)) != 0; case MFP_IP_ANY: return is_ip_any(flow);