netstack3_device::loopback

Function 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>>
Expand description

Sends an IP frame packet over device_id.