/// Adds an IPv4 address and associated subnet to this device.
Adds an IPv4 address and associated subnet to this device.
Adds an IPv4 address and associated subnet to this device .
pub(crate) fn add_ipv4_addr_subnet<
    C: IpDeviceContext<Ipv4> + BufferIpDeviceContext<Ipv4, EmptyBuf>,
>(
    ctx: &mut C,
    device_id: C::DeviceId,
    addr_sub: AddrSubnet<Ipv4Addr>,
) -> Result<(), ExistsError> {
    ctx.get_ip_device_state_mut(device_id).ip_state.add_addr(addr_sub)
}
pub ( crate ) fn add_ipv4_addr_subnet < C : IpDeviceContext < Ipv4 > + BufferIpDeviceContext < Ipv4 , EmptyBuf > , > ( ctx : & mut C , device_id : C :: DeviceId , addr_sub : AddrSubnet < Ipv4Addr > , ) -> Result < ( ) , ExistsError > { ctx . get_ip_device_state_mut ( device_id ) . ip_state . add_addr ( addr_sub ) }
Adds an IPv4 address and associated subnet to this device.
Adds an IPv4 address and associated subnet to this device .
ctx
&mut C
device_id
C::DeviceId
addr_sub
AddrSubnet<Ipv4Addr>