From fcb8317d851f5b8019f78d1156486b164cfb0466 Mon Sep 17 00:00:00 2001 From: "Martine S. Lenders" Date: Thu, 12 Mar 2020 14:06:53 +0100 Subject: [PATCH] tests/gnrc_dhcpv6_client_6lbr: put IA_PD option first In #13622 bugs in the option length handling were noted and fixed. Putting the IA_PD option first (as the `isc-dhcp-server` does) reproduces this bug. --- tests/gnrc_dhcpv6_client_6lbr/tests/01-run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gnrc_dhcpv6_client_6lbr/tests/01-run.py b/tests/gnrc_dhcpv6_client_6lbr/tests/01-run.py index 21853385a0..8f83b53f5c 100755 --- a/tests/gnrc_dhcpv6_client_6lbr/tests/01-run.py +++ b/tests/gnrc_dhcpv6_client_6lbr/tests/01-run.py @@ -140,7 +140,7 @@ def testfunc(child): sniffer = start_sniffer(iface, stop_filter=lambda pkt: DHCP6_Request in pkt) sendp(build_reply_headers(pkt) / DHCP6_Advertise(trid=trid) / - cli_id / srv_id / ia_pd, iface=iface, verbose=False) + ia_pd / cli_id / srv_id, iface=iface, verbose=False) # wait for request pkt = wait_for_dhcpv6_pkt(iface, sniffer) @@ -158,7 +158,7 @@ def testfunc(child): # reply to request with reply and a prefix provided trid = pkt[DHCP6_Request].trid sendp(build_reply_headers(pkt) / DHCP6_Reply(trid=trid) / - cli_id / srv_id / ia_pd, iface=iface, verbose=False) + ia_pd / cli_id / srv_id, iface=iface, verbose=False) time.sleep(1) # check if global address was configured