commit | dcfb3702e62f2c5fa09ede1106253916de7bd9b7 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue May 10 16:08:35 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue May 10 16:08:35 2016 +0900 |
tree | fff8c649361f87f36cad2c7377237099ecd09cd0 | |
parent | b8efc1b29a7de028fddca23a8234428ac149f783 [diff] |
Don't fail when we get a UDP checksum of 0xffff. scapy doesn't appear to change a zero checksum to 0xffff for UDP packets as required by RFC 768, but unsurprisingly, the kernel does. That can cause the test to fail because assertPacketMatches does a byte comparison and sees that 0 != ffff. Fix this by rewriting ffff to 0 for UDP packets. Change-Id: I6ab13ae5597dcc8ce34f591076ac7dd87f81a96f