Function netstack3_device::loopback::send_ip_frame
source ยท pub fn send_ip_frame<CC, BC, I, S>(
core_ctx: &mut CC,
bindings_ctx: &mut BC,
device_id: &<CC as DeviceIdContext<LoopbackDevice>>::DeviceId,
destination: IpPacketDestination<I, &<CC as DeviceIdContext<AnyDevice>>::DeviceId>,
ip_layer_metadata: DeviceIpLayerMetadata,
packet: S,
) -> Result<(), SendFrameError<S>>where
CC: TransmitQueueHandler<LoopbackDevice, BC, Meta = LoopbackTxQueueMeta<<CC as DeviceIdContext<AnyDevice>>::WeakDeviceId>> + ResourceCounterContext<<CC as DeviceIdContext<LoopbackDevice>>::DeviceId, DeviceCounters> + DeviceIdContext<AnyDevice>,
BC: DeviceLayerTypes,
I: EthernetIpExt + BroadcastIpExt,
S: Serializer,
S::Buffer: BufferMut,
Expand description
Sends an IP frame packet
over device_id
.