Re: [Qemu-devel] [PATCH] l2tpv3: fix cookie decoding

2016-01-03 Thread Jason Wang
On 12/31/2015 10:34 PM, Alexis D...t wrote: > If a 32 bits l2tpv3 frame cookie MSB if set to 1, the cast to uint64_t > cookie will > spread 1 to the four most significant bytes. > Then the condition (cookie != s->rx_cookie) becomes false. > > Signed-off-by: Alexis Dambricourt > --- > net/l2tpv3

[Qemu-devel] [PATCH] l2tpv3: fix cookie decoding

2015-12-31 Thread Alexis D...t
If a 32 bits l2tpv3 frame cookie MSB if set to 1, the cast to uint64_t cookie will spread 1 to the four most significant bytes. Then the condition (cookie != s->rx_cookie) becomes false. Signed-off-by: Alexis Dambricourt --- net/l2tpv3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif