X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fmeta-flow.c;h=3713ca4e845f9146c3293d65c526312a64c407bc;hb=fa2bad0ffc080ba8751421bdc2465f883d26e8bc;hp=c50cfc5359215119ae0210481cf232c4a9b1afd5;hpb=8069b0da045f1b8a5879f5d2dfedcaa7e7c86578;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);