Expand description
Helpers for tests involving the Neighbor Discovery Protocol.
Constants§
- MESSAGE_
TTL  - As per RFC 4861 sections 4.1-4.5, NDP packets MUST have a hop limit of 255.
 
Functions§
- assert_
dad_ failed  - Assert that the address state provider event stream yields an address removal error, indicating that DAD failed.
 - assert_
dad_ success  - Assert that the address state provider event stream yields an address assignment event, implying that DAD succeeded.
 - create_
message  - Create an NDP message with the provided parameters, including IPv6 and Ethernet headers.
 - expect_
dad_ neighbor_ solicitation  - Wait for and verify a NS message transmitted by netstack for DAD. Returns the bytes of the NS message.
 - fail_
dad_ with_ na  - Transmit a Neighbor Advertisement message simulating that a node owns
constants::ipv6::LINK_LOCAL_ADDR. - fail_
dad_ with_ ns  - Transmit a Neighbor Solicitation message simulating that a node is
performing DAD for 
constants::ipv6::LINK_LOCAL_ADDR. - send_ra
 - Send Router Advertisement NDP message.
 - send_
ra_ with_ router_ lifetime  - Send Router Advertisement NDP message with router lifetime.
 - wait_
for_ router_ solicitation  - Wait for a router solicitation message.
 - write_
message  - Write an NDP message to the provided fake endpoint.
 
Type Aliases§
- DadState
 - A result type that can be used to evaluate the outcome of Duplicate Address Detection (DAD).