/// Sends an IP packet through the device.
///
/// # Panics
///
/// Panics if the device is not initialized.
Sends an IP packet through the device.
Sends an IP packet through the device .
pub(crate) fn send_ip_frame<
    I: IpDeviceIpExt<C::Instant, C::DeviceId>,
    C: BufferIpDeviceContext<I, B>,
    B: BufferMut,
    S: Serializer<Buffer = B>,
>(
    ctx: &mut C,
    device_id: C::DeviceId,
    local_addr: SpecifiedAddr<I::Addr>,
    body: S,
) -> Result<(), S> {
    ctx.send_ip_frame(device_id, local_addr, body)
}
pub ( crate ) fn send_ip_frame < I : IpDeviceIpExt < C :: Instant , C :: DeviceId > , C : BufferIpDeviceContext < I , B > , B : BufferMut , S : Serializer < Buffer = B > , > ( ctx : & mut C , device_id : C :: DeviceId , local_addr : SpecifiedAddr < I :: Addr > , body : S , ) -> Result < ( ) , S > { ctx . send_ip_frame ( device_id , local_addr , body ) }
Sends an IP packet through the device.
Sends an IP packet through the device .
ctx
&mut C
device_id
C::DeviceId
local_addr
SpecifiedAddr<I::Addr>
body
S
panics
Panics if the device is not initialized.
Panics if the device is not initialized .