Esempio n. 1
0
        // /proc/net/route contains some information about gateway addresses,
        // and seperates the information about by each interface.
        public GatewayIPAddressInformationCollection GetGatewayAddresses()
        {
            List <GatewayIPAddressInformation> innerCollection
                = StringParsingHelpers.ParseGatewayAddressesFromRouteFile(NetworkFiles.Ipv4RouteFile, _linuxNetworkInterface.Name);

            return(new GatewayIPAddressInformationCollection(innerCollection));
        }