1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/tests/gnrc_ipv6_ext_frag
Benjamin Valentin 2ff7c474b7 shell_commands: gnrc_netif: print correct scope for IPv6 addr
Previously `ifconfig` would only know link-local addresses
(printed as 'local') and everything else would be 'global'.

This is wrong for site-local and unique local addresses which were
also denoted as global.

So use the already existing helper functions to determine the correct
type of IPv6 address when printing.
2019-10-21 14:47:34 +02:00
..
tests shell_commands: gnrc_netif: print correct scope for IPv6 addr 2019-10-21 14:47:34 +02:00
main.c tests/gnrc_ipv6_ext_frag: add test for nth frag with full rbuf first 2019-10-10 16:41:47 +02:00
Makefile tests: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci 2019-10-17 15:11:59 +02:00
Makefile.ci tests: add microduino-corerf to Makefile.ci 2019-10-17 20:38:47 +02:00
README.md tests: provide initial tests for gnrc_ipv6_ext_frag 2019-09-16 19:13:19 +02:00
udp.c tests: provide initial tests for gnrc_ipv6_ext_frag 2019-09-16 19:13:19 +02:00

gnrc_ipv6_ext_frag test

This test utilizes scapy to test the IPv6 Extension header parsing.

It is intended to just test the fragmentation header handling and generation. For other extension header types please provide a separate test application.

To test, compile and flash the application to any board of your liking (since ethos is used to communicate with non-native boards it really doesn't matter as long as the application fits).

make flash

And run the tests using

sudo make test

Note that root privileges are required since scapy needs to construct Ethernet frames to properly communicate over the TAP interface.

The tests succeeds if you see the string SUCCESS.

If any problems are encountered (i.e. if the test prints the sting FAILED), set the echo parameter in the run() function at the bottom of the test script (tests/01-run.py) to True. The test script will then offer a more detailed output.

It might be that due to scapy's sniffer not picking up an expected packet sometimes that the test application hangs for a while and then issues FAILED. Just restart the test in that case.