Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

braindead bsd sends packets with the wrong source address.

  • Loading branch information...
commit 8dc5d31a93e27715a4dfb3d22da30111adbde8bc 1 parent 05c6bf8
Caleb James DeLisle authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 interface/test/TUNInterface_ipv6_root_test.c
6 interface/test/TUNInterface_ipv6_root_test.c
View
@@ -78,7 +78,11 @@ static uint8_t receiveMessageTUN(struct Message* msg, struct Interface* iface)
}
Assert_always(!Bits_memcmp(header->destinationAddr, testAddrB, 16));
- Assert_always(!Bits_memcmp(header->sourceAddr, testAddrA, 16));
+
+ if (Bits_memcmp(header->sourceAddr, testAddrA, 16)) {
+ Assert_always(header->sourceAddr[0] == 0xfc);
+ printf("Message has the wrong source address from existing TUN device.\n");
+ }
Bits_memcpyConst(header->destinationAddr, testAddrA, 16);
Bits_memcpyConst(header->sourceAddr, testAddrB, 16);
Please sign in to comment.
Something went wrong with that request. Please try again.