logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

OCSInventory::Agent::Backend::OS::Linux::Network::Networks - Network-related functions

Description

       This module retrieves network information.

Functions

getSpeed
       Returns the speed of the card.

   getDuplex
       Returns duplex state of the card.

   getMTU
       Returns the mtu of the card.

   getStatus
       Returns the status of the card.

   getMAC
       Returns the mac address.

   getSubnetAddress($address,$mask)
       Returns the subnet address for IPv4.

   getSubnetAddressIPv6($address,$mask)
       Returns the subnet address for IPv6.

   getIPNetmask($prefix)
       Returns the network mask for IPv4.

   getIPNetmaskV6($prefix)
       Returns the network mask for IPv6.

   getslaves
       Returns if card has a bonding.

   getIPRoute
       Returns the gateway defined int he ip config.

   getRouteIfconfig
       Returns the gateway defined in the ip config.

   isSameNetwork
       Returns true if both addresses belong to the same network, for IPv4.

   isSameNetworkIPv6
       Returns true if both addresses belong to the same network, for IPv6.

Name

       OCSInventory::Agent::Backend::OS::Linux::Network::Networks - Network-related functions

Pod Errors

       Hey! Theabovedocumenthadsomecodingerrors,whichareexplainedbelow:

       Around line 979:
           =back without =over

perl v5.40.1                                       2025-06-07             Ocsinventory::A...twork::Networks(3pm)

See Also