pub(super) fn bob_pings_alice_for_tap_like(config: &super::EthernetLayerConfig) -> Vec<u8> {
        packet::Buf::new(&mut bob_pings_alice_for_tun_like(&config.ip_layer)[..], ..)
            .encapsulate(EthernetFrameBuilder::new(
                mac(config.bob_mac),
                mac(config.alice_mac),
                EtherType::Ipv4,
            ))
            .serialize_vec_outer()
            .expect("serialization failed")
            .as_ref()
            .to_vec()
    }
/// Creates the ICMP bytes for bob pinging alice to use in TAP-like
/// examples.
Creates the ICMP bytes for bob pinging alice to use in TAP-like
examples.
Creates the ICMP bytes for bob pinging alice to use in TAP - like examples .
pub(super) fn bob_pings_alice_for_tap_like(config: &super::EthernetLayerConfig) -> Vec<u8> {
        packet::Buf::new(&mut bob_pings_alice_for_tun_like(&config.ip_layer)[..], ..)
            .encapsulate(EthernetFrameBuilder::new(
                mac(config.bob_mac),
                mac(config.alice_mac),
                EtherType::Ipv4,
            ))
            .serialize_vec_outer()
            .expect("serialization failed")
            .as_ref()
            .to_vec()
    }
pub ( super ) fn bob_pings_alice_for_tap_like ( config : & super :: EthernetLayerConfig ) -> Vec < u8 > { packet :: Buf :: new ( & mut bob_pings_alice_for_tun_like ( & config . ip_layer ) [ .. ] , .. ) . encapsulate ( EthernetFrameBuilder :: new ( mac ( config . bob_mac ) , mac ( config . alice_mac ) , EtherType :: Ipv4 , ) ) . serialize_vec_outer ( ) . expect ( " " ) . as_ref ( ) . to_vec ( ) }
Creates the ICMP bytes for bob pinging alice to use in TAP-like
examples.
Creates the ICMP bytes for bob pinging alice to use in TAP - like examples .
config
&super::EthernetLayerConfig
config
&super::EthernetLayerConfig