netstack3_ip

Function receive_ipv4_packet

Source
pub fn receive_ipv4_packet<BC: IpLayerBindingsContext<Ipv4, CC::DeviceId>, B: BufferMut, CC: IpLayerIngressContext<Ipv4, BC> + CounterContext<IpCounters<Ipv4>>>(
    core_ctx: &mut CC,
    bindings_ctx: &mut BC,
    device: &CC::DeviceId,
    frame_dst: Option<FrameDestination>,
    device_ip_layer_metadata: DeviceIpLayerMetadata,
    buffer: B,
)
Expand description

Receive an IPv4 packet from a device.

frame_dst specifies how this packet was received; see FrameDestination for options.