Merge pull request #3011 from akoeplinger/ci-fixes
[mono.git] / mcs / class / System / System.Net.NetworkInformation / IPGlobalStatistics.cs
index 7a017ef80a854b6700da25c4e8ae2929b40f0e5a..7822dfc6f360b7c6f045047d4b6135219b03100f 100644 (file)
@@ -31,35 +31,6 @@ using System.Globalization;
 using System.Runtime.InteropServices;
 
 namespace System.Net.NetworkInformation {
-       public abstract class IPGlobalStatistics {
-               protected IPGlobalStatistics ()
-               {
-               }
-
-               public abstract int DefaultTtl { get; }
-               public abstract bool ForwardingEnabled { get; }
-               public abstract int NumberOfInterfaces { get; }
-               public abstract int NumberOfIPAddresses { get; }
-               public abstract int NumberOfRoutes { get; }
-               public abstract long OutputPacketRequests { get; }
-               public abstract long OutputPacketRoutingDiscards { get; }
-               public abstract long OutputPacketsDiscarded { get; }
-               public abstract long OutputPacketsWithNoRoute { get; }
-               public abstract long PacketFragmentFailures { get; }
-               public abstract long PacketReassembliesRequired { get; }
-               public abstract long PacketReassemblyFailures { get; }
-               public abstract long PacketReassemblyTimeout { get; }
-               public abstract long PacketsFragmented { get; }
-               public abstract long PacketsReassembled { get; }
-               public abstract long ReceivedPackets { get; }
-               public abstract long ReceivedPacketsDelivered { get; }
-               public abstract long ReceivedPacketsDiscarded { get; }
-               public abstract long ReceivedPacketsForwarded { get; }
-               public abstract long ReceivedPacketsWithAddressErrors { get; }
-               public abstract long ReceivedPacketsWithHeadersErrors { get; }
-               public abstract long ReceivedPacketsWithUnknownProtocol { get; }
-       }
-
        class MibIPGlobalStatistics : IPGlobalStatistics
        {
                StringDictionary dic;
@@ -142,6 +113,7 @@ namespace System.Net.NetworkInformation {
                }
        }
 
+#if !MOBILE
        class Win32IPGlobalStatistics : IPGlobalStatistics 
        {
                Win32_MIB_IPSTATS info;
@@ -218,7 +190,7 @@ namespace System.Net.NetworkInformation {
                        get { return info.InUnknownProtos; }
                }
        }
-
+       
        [StructLayout (LayoutKind.Sequential)]
        struct Win32_MIB_IPSTATS
        {
@@ -246,5 +218,6 @@ namespace System.Net.NetworkInformation {
                public int NumAddr;
                public int NumRoutes;
        }
+#endif
 }