Changeset 3797 in MondoRescue


Ignore:
Timestamp:
Feb 15, 2024, 4:03:01 PM (2 months ago)
Author:
Bruno Cornec
Message:

Remove usage of obsolete Net::IPv4Addr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/MondoRescue/bin/mr-net-get-config

    r3707 r3797  
    99use strict 'vars';
    1010use IO::Interface::Simple;
    11 use Net::IPv4Addr qw( :all );;
     11use NetAddr::IP :aton;
     12use Data::Validate::IP qw(is_innet_ipv4)
    1213use Socket;
    1314use ProjectBuilder::Base;
     
    160161    pb_log(2, "is noarp\n")       if $if->is_noarp;
    161162    pb_log(2, "--\n");
    162     if (ipv4_in_network($if->address, $if->netmask, $hostip)) {
     163    if (is_innet_ipv4($hostip, "$if->address/$if->netmask")) {
    163164        pb_log(1, "Netfs server $host is in network $if->address/$if->netmask\n");
    164165        $found = 1;
Note: See TracChangeset for help on using the changeset viewer.