pub fn show_info(ip_addr: Ipv4Addr, gateway: Ipv4Addr, mtu: u16) {
    let ip_addr_octets = ip_addr.octets();
    let gateway_octets = gateway.octets();
    let mask = Ipv4Addr::new(
        !(ip_addr_octets[0] ^ gateway_octets[0]),
        !(ip_addr_octets[1] ^ gateway_octets[1]),
        !(ip_addr_octets[2] ^ gateway_octets[2]),
        0,
    );
    info!("Please set the network of your device which is going to be proxied with the following parameters:");
    info!("  ┌─{:─<10}─{:─>15}─┐", "", "");
    info!("  │ {:<10} {:>15} │", "IP Address", ip_addr);
    info!("  │ {:<10} {:>15} │", "Mask", mask);
    info!("  │ {:<10} {:>15} │", "Gateway", gateway);
    info!("  │─{:─<10}─{:─>15}─│", "", "");
    info!("  │ {:<10} {:>15} │", "MTU", mtu);
    info!("  └─{:─<10}─{:─>15}─┘", "", "");
}
/// Prints the dialog with information how to set up the proxied device.
Prints the dialog with information how to set up the proxied device.
Prints the dialog with information how to set up the proxied device .
pub fn show_info(ip_addr: Ipv4Addr, gateway: Ipv4Addr, mtu: u16) {
    let ip_addr_octets = ip_addr.octets();
    let gateway_octets = gateway.octets();
    let mask = Ipv4Addr::new(
        !(ip_addr_octets[0] ^ gateway_octets[0]),
        !(ip_addr_octets[1] ^ gateway_octets[1]),
        !(ip_addr_octets[2] ^ gateway_octets[2]),
        0,
    );
    info!("Please set the network of your device which is going to be proxied with the following parameters:");
    info!("  ┌─{:─<10}─{:─>15}─┐", "", "");
    info!("  │ {:<10} {:>15} │", "IP Address", ip_addr);
    info!("  │ {:<10} {:>15} │", "Mask", mask);
    info!("  │ {:<10} {:>15} │", "Gateway", gateway);
    info!("  │─{:─<10}─{:─>15}─│", "", "");
    info!("  │ {:<10} {:>15} │", "MTU", mtu);
    info!("  └─{:─<10}─{:─>15}─┘", "", "");
}
pub fn show_info ( ip_addr : Ipv4Addr , gateway : Ipv4Addr , mtu : u16 ) { let ip_addr_octets = ip_addr . octets ( ) ; let gateway_octets = gateway . octets ( ) ; let mask = Ipv4Addr :: new ( ! ( ip_addr_octets [ 0 ] ^ gateway_octets [ 0 ] ) , ! ( ip_addr_octets [ 1 ] ^ gateway_octets [ 1 ] ) , ! ( ip_addr_octets [ 2 ] ^ gateway_octets [ 2 ] ) , 0 , ) ; info ! ( " " ) ; info ! ( " info ! ( " I A p ddr); info ! ( " M k a ); info ! ( " G e a way); info ! ( " info ! ( " M " t ; info ! ( " }
Prints the dialog with information how to set up the proxied device.
Prints the dialog with information how to set up the proxied device .
ip_addr
Ipv4Addr
gateway
Ipv4Addr
mtu
u16