netstack3_ip

Trait IpDeviceIngressStateContext

Source
pub trait IpDeviceIngressStateContext<I: IpLayerIpExt>: DeviceIdContext<AnyDevice> {
    // Required method
    fn address_status_for_device(
        &mut self,
        addr: SpecifiedAddr<I::Addr>,
        device_id: &Self::DeviceId,
    ) -> AddressStatus<I::AddressStatus>;
}
Expand description

Provides access to an IP device’s state for IP layer ingress.

Required Methods§

Source

fn address_status_for_device( &mut self, addr: SpecifiedAddr<I::Addr>, device_id: &Self::DeviceId, ) -> AddressStatus<I::AddressStatus>

Gets the status of an address.

Only the specified device will be checked for the address. Returns AddressStatus::Unassigned if the address is not assigned to the device.

Implementors§