pub(super) fn build_bob_arp_response(config: &super::EthernetLayerConfig) -> Vec<u8> {
        ArpPacketBuilder::new(
            ArpOp::Response,
            mac(config.bob_mac),
            ip_v4(config.ip_layer.bob_ip),
            mac(config.alice_mac),
            ip_v4(config.ip_layer.alice_subnet.addr),
        )
        .into_serializer()
        .encapsulate(EthernetFrameBuilder::new(
            mac(config.bob_mac),
            mac(config.alice_mac),
            EtherType::Arp,
        ))
        .serialize_vec_outer()
        .expect("serialization failed")
        .as_ref()
        .to_vec()
    }
/// Creates an ARP response from bob to alice for use in tap-like tests.
Creates an ARP response from bob to alice for use in tap-like tests.
Creates an ARP response from bob to alice for use in tap - like tests .
pub(super) fn build_bob_arp_response(config: &super::EthernetLayerConfig) -> Vec<u8> {
        ArpPacketBuilder::new(
            ArpOp::Response,
            mac(config.bob_mac),
            ip_v4(config.ip_layer.bob_ip),
            mac(config.alice_mac),
            ip_v4(config.ip_layer.alice_subnet.addr),
        )
        .into_serializer()
        .encapsulate(EthernetFrameBuilder::new(
            mac(config.bob_mac),
            mac(config.alice_mac),
            EtherType::Arp,
        ))
        .serialize_vec_outer()
        .expect("serialization failed")
        .as_ref()
        .to_vec()
    }
pub ( super ) fn build_bob_arp_response ( config : & super :: EthernetLayerConfig ) -> Vec < u8 > { ArpPacketBuilder :: new ( ArpOp :: Response , mac ( config . bob_mac ) , ip_v4 ( config . ip_layer . bob_ip ) , mac ( config . alice_mac ) , ip_v4 ( config . ip_layer . alice_subnet . addr ) , ) . into_serializer ( ) . encapsulate ( EthernetFrameBuilder :: new ( mac ( config . bob_mac ) , mac ( config . alice_mac ) , EtherType :: Arp , ) ) . serialize_vec_outer ( ) . expect ( " " ) . as_ref ( ) . to_vec ( ) }
Creates an ARP response from bob to alice for use in tap-like tests.
Creates an ARP response from bob to alice for use in tap - like tests .
config
&super::EthernetLayerConfig
config
&super::EthernetLayerConfig