async fn fail_dad_with_na(
        iface: &netemul::TestInterface<'_>,
        fake_ep: &netemul::TestFakeEndpoint<'_>,
    ) {
        let () = write_ndp_message::<&[u8], _>(
            eth_consts::MAC_ADDR,
            Mac::from(&net_types_ip::Ipv6::ALL_NODES_LINK_LOCAL_MULTICAST_ADDRESS),
            ipv6_consts::LINK_LOCAL_ADDR,
            net_types_ip::Ipv6::ALL_NODES_LINK_LOCAL_MULTICAST_ADDRESS.get(),
            NeighborAdvertisement::new(
                false, /* router_flag */
                false, /* solicited_flag */
                false, /* override_flag */
                ipv6_consts::LINK_LOCAL_ADDR,
            ),
            &[NdpOption::TargetLinkLayerAddress(&eth_consts::MAC_ADDR.bytes())],
            fake_ep,
        )
        .await
        .expect("failed to write NDP message");

        check_address_failed_dad(iface).await
    }
/// Transmits a Neighbor Advertisement message and expects `ipv6_consts::LINK_LOCAL_ADDR`
/// to not be assigned to the interface after the normal resolution time for DAD.
Transmits a Neighbor Advertisement message and expects `ipv6_consts::LINK_LOCAL_ADDR`
to not be assigned to the interface after the normal resolution time for DAD.
Transmits a Neighbor Advertisement message and expects ` ipv6_consts :: LINK_LOCAL_ADDR ` to not be assigned to the interface after the normal resolution time for DAD .
async fn fail_dad_with_na(
        iface: &netemul::TestInterface<'_>,
        fake_ep: &netemul::TestFakeEndpoint<'_>,
    ) {
        let () = write_ndp_message::<&[u8], _>(
            eth_consts::MAC_ADDR,
            Mac::from(&net_types_ip::Ipv6::ALL_NODES_LINK_LOCAL_MULTICAST_ADDRESS),
            ipv6_consts::LINK_LOCAL_ADDR,
            net_types_ip::Ipv6::ALL_NODES_LINK_LOCAL_MULTICAST_ADDRESS.get(),
            NeighborAdvertisement::new(
                false, /* router_flag */
                false, /* solicited_flag */
                false, /* override_flag */
                ipv6_consts::LINK_LOCAL_ADDR,
            ),
            &[NdpOption::TargetLinkLayerAddress(&eth_consts::MAC_ADDR.bytes())],
            fake_ep,
        )
        .await
        .expect("failed to write NDP message");
        check_address_failed_dad(iface).await
    }
async fn fail_dad_with_na ( iface : & netemul :: TestInterface < ' _ > , fake_ep : & netemul :: TestFakeEndpoint < ' _ > , ) { let ( ) = write_ndp_message :: < & [ u8 ] , _ > ( eth_consts :: MAC_ADDR , Mac :: from ( & net_types_ip :: Ipv6 :: ALL_NODES_LINK_LOCAL_MULTICAST_ADDRESS ) , ipv6_consts :: LINK_LOCAL_ADDR , net_types_ip :: Ipv6 :: ALL_NODES_LINK_LOCAL_MULTICAST_ADDRESS . get ( ) , NeighborAdvertisement :: new ( false , /* router_flag */ false , /* solicited_flag */ false , /* override_flag */ ipv6_consts :: LINK_LOCAL_ADDR , ) , & [ NdpOption :: TargetLinkLayerAddress ( & eth_consts :: MAC_ADDR . bytes ( ) ) ] , fake_ep , ) . await . expect ( " " ) ; check_address_failed_dad ( iface ) . await }
Transmits a Neighbor Advertisement message and expects `ipv6_consts::LINK_LOCAL_ADDR`
to not be assigned to the interface after the normal resolution time for DAD.
Transmits a Neighbor Advertisement message and expects ` ipv6_consts :: LINK_LOCAL_ADDR ` to not be assigned to the interface after the normal resolution time for DAD .
iface
&netemul::TestInterface<'_>
fake_ep
&netemul::TestFakeEndpoint<'_>
iface
&netemul::TestInterface<'_>
fake_ep
&netemul::TestFakeEndpoint<'_>