xenserver: Restore XS5.5 compatibility for vif script.
[openvswitch] / lib / flow.c
index d22890e54705fee67b43b21bbed2f021980252e3..7d368bb6d4917aa2aaab1acc86cf777103b0c2f6 100644 (file)
@@ -151,7 +151,7 @@ flow_extract(struct ofpbuf *packet, uint16_t in_port, flow_t *flow)
             if (nh) {
                 flow->nw_src = nh->ip_src;
                 flow->nw_dst = nh->ip_dst;
-                flow->nw_tos = nh->ip_tos & 0xfc;
+                flow->nw_tos = nh->ip_tos & IP_DSCP_MASK;
                 flow->nw_proto = nh->ip_proto;
                 packet->l4 = b.data;
                 if (!IP_IS_FRAGMENT(nh->ip_frag_off)) {