Expand description
Helpers for tests involving the Neighbor Discovery Protocol.
Constants§
- As per RFC 4861 sections 4.1-4.5, NDP packets MUST have a hop limit of 255.
Functions§
- Assert that the address state provider event stream yields an address removal error, indicating that DAD failed.
- Assert that the address state provider event stream yields an address assignment event, implying that DAD succeeded.
- Wait for and verify a NS message transmitted by netstack for DAD. Returns the bytes of the NS message.
- Transmit a Neighbor Advertisement message simulating that a node owns
constants::ipv6::LINK_LOCAL_ADDR
. - Transmit a Neighbor Solicitation message simulating that a node is performing DAD for
constants::ipv6::LINK_LOCAL_ADDR
. - Send Router Advertisement NDP message.
- Send Router Advertisement NDP message with router lifetime.
- Wait for a router solicitation message.
- Write an NDP message to the provided fake endpoint.
Type Aliases§
- A result type that can be used to evaluate the outcome of Duplicate Address Detection (DAD).