[riot-notifications] [RIOT-OS/RIOT] tests/gnrc_dhcpv6_client_6lbr: Update test for DHCPv6 MUD option (#16593)

Jan Romann notifications at github.com
Mon Jun 28 17:53:48 CEST 2021


### Contribution description

#15508 added support for the Manufacturer Usage Description (MUD, RFC 8520) option to RIOT's DHCPv6 client. As `scapy`, a library that is used for testing the DHCPv6 client, did not support this option directly yet, a workaround with an alias based on the generic `DHCP6OptUnknown` was introduced to the `gnrc_dhcpv6_client_6lbr` test.

As a new version (2.4.5) of `scapy` has been released in the meantime, this PR updates the test file while maintaining backwards compability with older `scapy` versions. When using a `scapy` version >= 2.4.5 the newly integrated MUD option is used directly without a workaround. Otherwise, the old solution is used.

### Testing procedure

To test this PR run the updated test with an older and the current version of `scapy`. It should succeed in both cases.

### Issues/PRs references

This contribution was initially part of #16228 but has been turned into its own PR to separate it from other unrelated changes.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16593

-- Commit Summary --

  * tests/dhcpv6_6lbr: Update test for MUD option

-- File Changes --

    M tests/gnrc_dhcpv6_client_6lbr/tests-as-root/01-run.py (24)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16593.patch
https://github.com/RIOT-OS/RIOT/pull/16593.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16593
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210628/e27a6c42/attachment.htm>


More information about the notifications mailing list