tests: provide test case for malformed IEEE 802.15.4 packets - #11401
Conversation
9364d56 to
097036c
Compare
|
Ping? We should merge this test case soonish to prevent regression. |
|
Mhhh. Murdock seems to have a problem with the sockets. @kaspar030 any idea what's happening? |
|
Ping @kaspar030? |
I think docker containers don't have ipv6 enabled. |
Not nice. Let's see how it deals with an IPv4 socket then. |
|
Works :-) |
Then again it doesn't because now the test still works when I revert 3c19aa7. :-/. For now I revert the last commit |
@cladmi any idea why? |
(as discussed offline) This is just Docker's default configuration, see https://docs.docker.com/v17.09/engine/userguide/networking/default_network/ipv6/. So this is not a container option, but a container runtime configuration issue. |
The problem on my local machine at least was that some weird other address ( RIOT/cpu/native/socket_zep/socket_zep.c Lines 337 to 341 in 5eaf45c and here RIOT/cpu/native/socket_zep/socket_zep.c Lines 357 to 361 in 5eaf45c |
|
(so the socket is bound to a non-existing address, so it isn't able to receive anything so the packet that triggers a bogus packet without 3c19aa7 is never received :-/) |
Since RIOT doesn't even speak IPv4 I think it is important for our main testing environment to support IPv6, no? |
(without packages ;-)) |
|
On my machine there is no failure when run with the I before tried to only have the script with ipv4 without changing riot configuration… as I did not thought about it, and it worked. I think that sending a "please tell me you answer" first or last packet could help ensuring we are sending to the right destination. |
Done |
|
Pushed the IPv4 version again, so we can see what murdock is saying about it. |
1e2db4d to
bd93502
Compare
|
On my machine |
Same goes for Murdock... I guess we need to fix |
|
Or IPv6 in the test environments. |
|
I think it was the test after all. I have a new machine now, and there the test also failed. Will fix. |
|
Fixed |
|
(by porting the test to scapy... while it still uses sockets, afaik Murdock does not have scapy installed ;-)) |
|
Once RIOT-OS/riotdocker#77 is deployed, this test should work again. @kaspar030 @smlng any timeline on this? |
|
Let's try it. ;-) |
|
Murdock only complains about Pull request needs squashing so it looks like So why not make Murdock firmly happy and squash :) |
9dd114d to
6f6cf6d
Compare
|
Squashed and rebased |
6f6cf6d to
aaaa8a2
Compare
|
I noticed an error in the test script. It should now be fixed. |
|
(i.e. please make sure to follow the testing procedures before merging ;-)) |
haukepetersen
left a comment
There was a problem hiding this comment.
Reasoning is valid to me, so is the code. Test runs as expected -> ACK
|
Thanks for the review! |
Contribution description
This provides a test case for #11398
Testing procedure
Compile and run the test on native.
make -C tests/gnrc_netif_ieee802154/ all testRevert 3c19aa7 and compile and run again. This time the test will fail.
Issues/PRs references
Provides regression test for #11399.