Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SystemIPGlobalStatistics.cs
Go to the documentation of this file.
1
using
System.Net.Sockets
;
2
3
namespace
System.Net.NetworkInformation
;
4
5
internal
sealed
class
SystemIPGlobalStatistics
:
IPGlobalStatistics
6
{
7
private
readonly global::Interop.IpHlpApi.MibIpStats
_stats
;
8
9
public
override
bool
ForwardingEnabled
=>
_stats
.forwardingEnabled;
10
11
public
override
int
DefaultTtl
=> (int)
_stats
.defaultTtl;
12
13
public
override
long
ReceivedPackets
=>
_stats
.packetsReceived;
14
15
public
override
long
ReceivedPacketsWithHeadersErrors
=>
_stats
.receivedPacketsWithHeaderErrors;
16
17
public
override
long
ReceivedPacketsWithAddressErrors
=>
_stats
.receivedPacketsWithAddressErrors;
18
19
public
override
long
ReceivedPacketsForwarded
=>
_stats
.packetsForwarded;
20
21
public
override
long
ReceivedPacketsWithUnknownProtocol
=>
_stats
.receivedPacketsWithUnknownProtocols;
22
23
public
override
long
ReceivedPacketsDiscarded
=>
_stats
.receivedPacketsDiscarded;
24
25
public
override
long
ReceivedPacketsDelivered
=>
_stats
.receivedPacketsDelivered;
26
27
public
override
long
OutputPacketRequests
=>
_stats
.packetOutputRequests;
28
29
public
override
long
OutputPacketRoutingDiscards
=>
_stats
.outputPacketRoutingDiscards;
30
31
public
override
long
OutputPacketsDiscarded
=>
_stats
.outputPacketsDiscarded;
32
33
public
override
long
OutputPacketsWithNoRoute
=>
_stats
.outputPacketsWithNoRoute;
34
35
public
override
long
PacketReassemblyTimeout
=>
_stats
.packetReassemblyTimeout;
36
37
public
override
long
PacketReassembliesRequired
=>
_stats
.packetsReassemblyRequired;
38
39
public
override
long
PacketsReassembled
=>
_stats
.packetsReassembled;
40
41
public
override
long
PacketReassemblyFailures
=>
_stats
.packetsReassemblyFailed;
42
43
public
override
long
PacketsFragmented
=>
_stats
.packetsFragmented;
44
45
public
override
long
PacketFragmentFailures
=>
_stats
.packetsFragmentFailed;
46
47
public
override
int
NumberOfInterfaces
=> (int)
_stats
.interfaces;
48
49
public
override
int
NumberOfIPAddresses
=> (int)
_stats
.ipAddresses;
50
51
public
override
int
NumberOfRoutes
=> (int)
_stats
.routes;
52
53
internal
SystemIPGlobalStatistics
(
AddressFamily
family)
54
{
55
uint ipStatisticsEx = global::Interop.IpHlpApi.GetIpStatisticsEx(out
_stats
, family);
56
if
(ipStatisticsEx != 0)
57
{
58
throw
new
NetworkInformationException
((
int
)ipStatisticsEx);
59
}
60
}
61
}
System.Net.NetworkInformation.IPGlobalStatistics
Definition
IPGlobalStatistics.cs:4
System.Net.NetworkInformation.NetworkInformationException
Definition
NetworkInformationException.cs:12
System.Net.NetworkInformation.SystemIPGlobalStatistics.OutputPacketRequests
override long OutputPacketRequests
Definition
SystemIPGlobalStatistics.cs:27
System.Net.NetworkInformation.SystemIPGlobalStatistics.PacketFragmentFailures
override long PacketFragmentFailures
Definition
SystemIPGlobalStatistics.cs:45
System.Net.NetworkInformation.SystemIPGlobalStatistics._stats
readonly global::Interop.IpHlpApi.MibIpStats _stats
Definition
SystemIPGlobalStatistics.cs:7
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPacketsDiscarded
override long ReceivedPacketsDiscarded
Definition
SystemIPGlobalStatistics.cs:23
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPacketsWithAddressErrors
override long ReceivedPacketsWithAddressErrors
Definition
SystemIPGlobalStatistics.cs:17
System.Net.NetworkInformation.SystemIPGlobalStatistics.NumberOfIPAddresses
override int NumberOfIPAddresses
Definition
SystemIPGlobalStatistics.cs:49
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPacketsWithHeadersErrors
override long ReceivedPacketsWithHeadersErrors
Definition
SystemIPGlobalStatistics.cs:15
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPackets
override long ReceivedPackets
Definition
SystemIPGlobalStatistics.cs:13
System.Net.NetworkInformation.SystemIPGlobalStatistics.SystemIPGlobalStatistics
SystemIPGlobalStatistics(AddressFamily family)
Definition
SystemIPGlobalStatistics.cs:53
System.Net.NetworkInformation.SystemIPGlobalStatistics.PacketReassemblyTimeout
override long PacketReassemblyTimeout
Definition
SystemIPGlobalStatistics.cs:35
System.Net.NetworkInformation.SystemIPGlobalStatistics.ForwardingEnabled
override bool ForwardingEnabled
Definition
SystemIPGlobalStatistics.cs:9
System.Net.NetworkInformation.SystemIPGlobalStatistics.OutputPacketRoutingDiscards
override long OutputPacketRoutingDiscards
Definition
SystemIPGlobalStatistics.cs:29
System.Net.NetworkInformation.SystemIPGlobalStatistics.PacketsReassembled
override long PacketsReassembled
Definition
SystemIPGlobalStatistics.cs:39
System.Net.NetworkInformation.SystemIPGlobalStatistics.PacketReassemblyFailures
override long PacketReassemblyFailures
Definition
SystemIPGlobalStatistics.cs:41
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPacketsWithUnknownProtocol
override long ReceivedPacketsWithUnknownProtocol
Definition
SystemIPGlobalStatistics.cs:21
System.Net.NetworkInformation.SystemIPGlobalStatistics.PacketsFragmented
override long PacketsFragmented
Definition
SystemIPGlobalStatistics.cs:43
System.Net.NetworkInformation.SystemIPGlobalStatistics.NumberOfRoutes
override int NumberOfRoutes
Definition
SystemIPGlobalStatistics.cs:51
System.Net.NetworkInformation.SystemIPGlobalStatistics.NumberOfInterfaces
override int NumberOfInterfaces
Definition
SystemIPGlobalStatistics.cs:47
System.Net.NetworkInformation.SystemIPGlobalStatistics.OutputPacketsDiscarded
override long OutputPacketsDiscarded
Definition
SystemIPGlobalStatistics.cs:31
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPacketsDelivered
override long ReceivedPacketsDelivered
Definition
SystemIPGlobalStatistics.cs:25
System.Net.NetworkInformation.SystemIPGlobalStatistics.PacketReassembliesRequired
override long PacketReassembliesRequired
Definition
SystemIPGlobalStatistics.cs:37
System.Net.NetworkInformation.SystemIPGlobalStatistics.DefaultTtl
override int DefaultTtl
Definition
SystemIPGlobalStatistics.cs:11
System.Net.NetworkInformation.SystemIPGlobalStatistics.ReceivedPacketsForwarded
override long ReceivedPacketsForwarded
Definition
SystemIPGlobalStatistics.cs:19
System.Net.NetworkInformation.SystemIPGlobalStatistics.OutputPacketsWithNoRoute
override long OutputPacketsWithNoRoute
Definition
SystemIPGlobalStatistics.cs:33
System.Net.NetworkInformation.SystemIPGlobalStatistics
Definition
SystemIPGlobalStatistics.cs:6
System.Net.NetworkInformation
Definition
DuplicateAddressDetectionState.cs:1
System.Net.Sockets.AddressFamily
AddressFamily
Definition
AddressFamily.cs:4
System.Net.Sockets
Definition
AddressInfoHints.cs:1
source
System.Net.NetworkInformation
System.Net.NetworkInformation
SystemIPGlobalStatistics.cs
Generated by
1.10.0