send_ip_frame

Function send_ip_frame 

Source
pub fn send_ip_frame<BC, CC, I, S>(
    core_ctx: &mut CC,
    bindings_ctx: &mut BC,
    device_id: &CC::DeviceId,
    destination: IpPacketDestination<I, &DeviceId<BC>>,
    body: S,
    meta: BC::TxMetadata,
) -> Result<(), SendFrameError<S>>
Expand description

Send an IP packet in an Ethernet frame.

send_ip_frame accepts a device ID, a local IP address, and a serializer. It computes the routing information, serializes the serializer, and sends the resulting buffer in a new Ethernet frame.