pub fn add_ip_addr_subnet_with_config<I: IpDeviceIpExt, BC: IpDeviceBindingsContext<I, CC::DeviceId>, CC: IpDeviceStateContext<I, BC> + GmpHandler<I, BC> + DadHandler<I, BC>>(
core_ctx: &mut CC,
bindings_ctx: &mut BC,
device_id: &CC::DeviceId,
addr_sub: AddrSubnet<I::Addr, I::AssignedWitness>,
addr_config: I::AddressConfig<BC::Instant>,
_device_config: &I::Configuration,
) -> Result<CC::AddressId, ExistsError>
Expand description
Adds addr_sub
to device_id
with configuration addr_config
.
_device_config
is not used but required to make sure that the caller is
currently holding a a reference to the IP device’s IP configuration as a way
to prove that caller has synchronized this operation with other accesses to
the IP device configuration.