X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.c;fp=ofproto%2Fofproto.c;h=8720ae7e8a757d6bec76d8d0a12a1c3956a1ad52;hb=4927c517cc2373b4957e75328d6d347ba844d23d;hp=737b86b5001c3b94b0c4925041337d4f614bcc86;hpb=6cd1fd9128bb9719fad0a0f210308069f71fafd6;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 737b86b50..8720ae7e8 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2394,8 +2394,8 @@ do_xlate_actions(const union ofp_action *in, size_t n_in, case OFPAT_SET_NW_TOS: nl_msg_put_u8(ctx->odp_actions, ODP_ACTION_ATTR_SET_NW_TOS, - ia->nw_tos.nw_tos); - ctx->flow.nw_tos = ia->nw_tos.nw_tos; + ia->nw_tos.nw_tos & IP_DSCP_MASK); + ctx->flow.nw_tos = ia->nw_tos.nw_tos & IP_DSCP_MASK; break; case OFPAT_SET_TP_SRC: