mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-31 09:21:19 +01:00
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.
This commit is contained in:
parent
a25c61bc8b
commit
fcb8317d85
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user