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§
Sourcefn address_status_for_device(
&mut self,
addr: SpecifiedAddr<I::Addr>,
device_id: &Self::DeviceId,
) -> AddressStatus<I::AddressStatus>
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.