Commit dcfb3702 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

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
parent b8efc1b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment