netstack3_device::ethernet

Function send_as_ethernet_frame_to_dst

Source
pub fn send_as_ethernet_frame_to_dst<S, BC, CC>(
    core_ctx: &mut CC,
    bindings_ctx: &mut BC,
    device_id: &CC::DeviceId,
    dst_mac: Mac,
    body: S,
    ether_type: EtherType,
) -> Result<(), SendFrameError<S>>
where S: Serializer, S::Buffer: BufferMut, BC: EthernetIpLinkDeviceBindingsContext, CC: EthernetIpLinkDeviceDynamicStateContext<BC> + TransmitQueueHandler<EthernetLinkDevice, BC, Meta = ()> + ResourceCounterContext<CC::DeviceId, DeviceCounters>,
Expand description

Send an Ethernet frame body directly to dst_mac with ether_type.