netstack_testing_common

Module ndp

Source
Expand description

Helpers for tests involving the Neighbor Discovery Protocol.

Constants§

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).