git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f7f69
)
flow: flow_extract() improperly parses IPv6 TOS bits.
author
Ethan Jackson
<ethan@nicira.com>
Wed, 16 Nov 2011 02:35:26 +0000
(18:35 -0800)
committer
Ethan Jackson
<ethan@nicira.com>
Wed, 16 Nov 2011 18:17:50 +0000
(10:17 -0800)
This problem could cause userspace to automatically evict IPv6
flows from the datapath which had TOS bits set.
Bug #8323.
lib/flow.c
patch
|
blob
|
history
diff --git
a/lib/flow.c
b/lib/flow.c
index
fc09a77
..
519c878
100644
(file)
--- a/
lib/flow.c
+++ b/
lib/flow.c
@@
-150,7
+150,7
@@
parse_ipv6(struct ofpbuf *packet, struct flow *flow)
flow->ipv6_dst = nh->ip6_dst;
tc_flow = get_unaligned_be32(&nh->ip6_flow);
- flow->nw_tos = (ntohl(tc_flow) >>
4
) & IP_DSCP_MASK;
+ flow->nw_tos = (ntohl(tc_flow) >>
20
) & IP_DSCP_MASK;
flow->nw_proto = IPPROTO_NONE;
while (1) {