git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Set the correct bits for OFPAT_SET_NW_TOS action.
[sliver-openvswitch.git]
/
lib
/
flow.c
diff --git
a/lib/flow.c
b/lib/flow.c
index
d22890e
..
7d368bb
100644
(file)
--- a/
lib/flow.c
+++ b/
lib/flow.c
@@
-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)) {