[system] Add missing APIs
[mono.git] / mcs / class / System / System.Net.NetworkInformation / IPv4InterfaceStatistics.cs
index 79b9e37ff1ad5749afba520641ae32ad8a5364f7..8dd8743c85ffbcc070cc2fda0f5a766df00a786a 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_0
 namespace System.Net.NetworkInformation {
-       public abstract class IPv4InterfaceStatistics {
-               protected IPv4InterfaceStatistics ()
-               {
-               }
-               
-               public abstract long BytesReceived { get; }
-               public abstract long BytesSent { get; }
-               public abstract long IncomingPacketsDiscarded { get; }
-               public abstract long IncomingPacketsWithErrors { get; }
-               public abstract long IncomingUnknownProtocolPackets { get; }
-               public abstract long NonUnicastPacketsReceived { get; }
-               public abstract long NonUnicastPacketsSent { get; }
-               public abstract long OutgoingPacketsDiscarded { get; }
-               public abstract long OutgoingPacketsWithErrors { get; }
-
-               [MonoTODO("Not implemented for Linux")]
-               public abstract long OutputQueueLength { get; }
-               public abstract long UnicastPacketsReceived { get; }
-               public abstract long UnicastPacketsSent { get; }
-       }
-
        class Win32IPv4InterfaceStatistics : IPv4InterfaceStatistics
        {
                Win32_MIB_IFROW info;
@@ -121,7 +99,7 @@ namespace System.Net.NetworkInformation {
                long Read (string file)
                {
                        try {
-                               return long.Parse (NetworkInterface.ReadLine (linux.IfacePath + file));
+                               return long.Parse (LinuxNetworkInterface.ReadLine (linux.IfacePath + file));
                        } catch {
                                return 0;
                        }
@@ -263,5 +241,4 @@ namespace System.Net.NetworkInformation {
        }
        
 }
-#endif