87 references to Sys
System.Net.NetworkInformation (87)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (20)
7public static unsafe extern partial int EnumerateInterfaceAddresses(void* context, delegate* unmanaged<void*, byte*, global::Interop.Sys.IpAddressInfo*, void> ipv4Found, delegate* unmanaged<void*, byte*, global::Interop.Sys.IpAddressInfo*, uint*, void> ipv6Found, delegate* unmanaged<void*, byte*, global::Interop.Sys.LinkLayerAddressInfo*, void> linkLayerFound); 15public static unsafe extern partial int EnumerateGatewayAddressesForInterface(void* context, uint interfaceIndex, delegate* unmanaged<void*, global::Interop.Sys.IpAddressInfo*, void> onGatewayFound); 23public static unsafe partial int GetNetworkInterfaces(int* count, global::Interop.Sys.NetworkInterfaceInfo** addrs, int* addressCount, global::Interop.Sys.IpAddressInfo** aa) 38static extern unsafe int __PInvoke(int* __count_native, global::Interop.Sys.NetworkInterfaceInfo** __addrs_native, int* __addressCount_native, global::Interop.Sys.IpAddressInfo** __aa_native); 138public static unsafe partial global::Interop.Error ReadEvents(global::System.Runtime.InteropServices.SafeHandle socket, delegate* unmanaged<nint, global::Interop.Sys.NetworkChangeKind, void> onNetworkChange) 164static extern unsafe global::Interop.Error __PInvoke(nint __socket_native, delegate* unmanaged<nint, global::Interop.Sys.NetworkChangeKind, void> __onNetworkChange_native); 174public static unsafe extern partial int GetTcpGlobalStatistics(global::Interop.Sys.TcpGlobalStatistics* statistics); 182public static unsafe extern partial int GetIPv4GlobalStatistics(global::Interop.Sys.IPv4GlobalStatistics* statistics); 190public static unsafe extern partial int GetUdpGlobalStatistics(global::Interop.Sys.UdpGlobalStatistics* statistics); 198public static unsafe extern partial int GetIcmpv4GlobalStatistics(global::Interop.Sys.Icmpv4GlobalStatistics* statistics); 206public static unsafe extern partial int GetIcmpv6GlobalStatistics(global::Interop.Sys.Icmpv6GlobalStatistics* statistics); 214public static partial int GetNativeIPInterfaceStatistics(string name, out global::Interop.Sys.NativeIPInterfaceStatistics stats) 228fixed (global::Interop.Sys.NativeIPInterfaceStatistics* __stats_native = &stats) 243static extern unsafe int __PInvoke(byte* __name_native, global::Interop.Sys.NativeIPInterfaceStatistics* __stats_native); 269public static unsafe extern partial int GetActiveTcpConnectionInfos(global::Interop.Sys.NativeTcpConnectionInformation* infos, int* infoCount); 285public static unsafe extern partial int GetActiveUdpListeners(global::Interop.Sys.IPEndPointInfo* infos, int* infoCount);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (3)
124_error = Interop.Sys.ConvertErrorPlatformToPal(errno); 141get { return _rawErrno == -1 ? (_rawErrno = Interop.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; } 146return Interop.Sys.StrError(RawErrno);
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\HostInformationPal.Unix.cs (2)
10return Interop.Sys.GetHostName(); 15return Interop.Sys.GetDomainName();
System\Net\NetworkInformation\BsdIcmpV4Statistics.cs (2)
35Interop.Sys.Icmpv4GlobalStatistics statistics; 36if (Interop.Sys.GetIcmpv4GlobalStatistics(&statistics) != 0)
System\Net\NetworkInformation\BsdIcmpV6Statistics.cs (2)
41Interop.Sys.Icmpv6GlobalStatistics statistics; 42if (Interop.Sys.GetIcmpv6GlobalStatistics(&statistics) != 0)
System\Net\NetworkInformation\BsdIPGlobalProperties.cs (12)
12int realCount = Interop.Sys.GetEstimatedTcpConnectionCount(); 20Interop.Sys.NativeTcpConnectionInformation[] infos = new Interop.Sys.NativeTcpConnectionInformation[infoCount]; 21fixed (Interop.Sys.NativeTcpConnectionInformation* infosPtr = infos) 23if (Interop.Sys.GetActiveTcpConnectionInfos(infosPtr, &infoCount) == -1) 33Interop.Sys.NativeTcpConnectionInformation nativeInfo = infos[i]; 78int realCount = Interop.Sys.GetEstimatedUdpListenerCount(); 86Interop.Sys.IPEndPointInfo[] infos = new Interop.Sys.IPEndPointInfo[infoCount]; 87fixed (Interop.Sys.IPEndPointInfo* infosPtr = infos) 89if (Interop.Sys.GetActiveUdpListeners(infosPtr, &infoCount) == -1) 98Interop.Sys.IPEndPointInfo endPointInfo = infos[i];
System\Net\NetworkInformation\BsdIpInterfaceProperties.cs (2)
77if (Interop.Sys.EnumerateGatewayAddressesForInterface(&context, (uint)interfaceIndex, &OnGatewayFound) == -1) 92private static unsafe void OnGatewayFound(void* pContext, Interop.Sys.IpAddressInfo* gatewayAddressInfo)
System\Net\NetworkInformation\BsdIpInterfaceStatistics.cs (2)
24Interop.Sys.NativeIPInterfaceStatistics nativeStats; 25if (Interop.Sys.GetNativeIPInterfaceStatistics(name, out nativeStats) == -1)
System\Net\NetworkInformation\BsdIPv4GlobalStatistics.cs (5)
39private static unsafe void ProcessIpv4Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr) 49Interop.Sys.IPv4GlobalStatistics statistics; 50if (Interop.Sys.GetIPv4GlobalStatistics(&statistics) == -1) 74Interop.Sys.EnumerateInterfaceAddresses( 83_numRoutes = Interop.Sys.GetNumRoutes();
System\Net\NetworkInformation\BsdNetworkInterface.cs (9)
21Interop.Sys.NativeIPInterfaceStatistics nativeStats; 22if (Interop.Sys.GetNativeIPInterfaceStatistics(name, out nativeStats) == -1) 27if ((nativeStats.Flags & (ulong)Interop.Sys.InterfaceFlags.InterfaceError) != 0) 33_operationalStatus = (nativeStats.Flags & (ulong)Interop.Sys.InterfaceFlags.InterfaceHasLink) != 0 ? OperationalStatus.Up : OperationalStatus.Down; 36_supportsMulticast = (nativeStats.Flags & (ulong)Interop.Sys.InterfaceFlags.InterfaceSupportsMulticast) != 0; 74private static unsafe void ProcessIpv4Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr) 88private static unsafe void ProcessIpv6Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr, uint* scopeId) 102private static unsafe void ProcessLinkLayerAddress(void* pContext, byte* ifaceName, Interop.Sys.LinkLayerAddressInfo* llAddr) 127int result = Interop.Sys.EnumerateInterfaceAddresses(&context, &ProcessIpv4Address, &ProcessIpv6Address, &ProcessLinkLayerAddress);
System\Net\NetworkInformation\BsdTcpStatistics.cs (2)
22Interop.Sys.TcpGlobalStatistics statistics; 23if (Interop.Sys.GetTcpGlobalStatistics(&statistics) != 0)
System\Net\NetworkInformation\BsdUdpStatistics.cs (2)
18Interop.Sys.UdpGlobalStatistics statistics; 19if (Interop.Sys.GetUdpGlobalStatistics(&statistics) == -1)
System\Net\NetworkInformation\IPAddressUtil.cs (1)
35public static unsafe IPAddress GetIPAddressFromNativeInfo(Interop.Sys.IpAddressInfo* addressInfo)
System\Net\NetworkInformation\LinuxIPGlobalStatistics.cs (3)
94private static unsafe void ProcessIpv4Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr) 100private static unsafe void ProcessIpv6Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr, uint* scopeId) 108Interop.Sys.EnumerateInterfaceAddresses(&count,
System\Net\NetworkInformation\LinuxNetworkInterface.cs (4)
80Interop.Sys.NetworkInterfaceInfo* nii = null; 81Interop.Sys.IpAddressInfo* ai = null; 84if (Interop.Sys.GetNetworkInterfaces(&interfaceCount, &nii, &addressCount, &ai) != 0) 86string message = Interop.Sys.GetLastErrorInfo().GetErrorMessage();
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (9)
182Interop.Error result = Interop.Sys.CreateNetworkChangeListenerSocket(&newSocket); 185string message = Interop.Sys.GetLastErrorInfo().GetErrorMessage(); 242=> Interop.Sys.ReadEvents(socket.SafeHandle, &ProcessEvent); 246private static void ProcessEvent(IntPtr socket, Interop.Sys.NetworkChangeKind kind) 248if (kind != Interop.Sys.NetworkChangeKind.None) 262private static void OnSocketEvent(Interop.Sys.NetworkChangeKind kind) 266case Interop.Sys.NetworkChangeKind.AddressAdded: 267case Interop.Sys.NetworkChangeKind.AddressRemoved: 270case Interop.Sys.NetworkChangeKind.AvailabilityChanged:
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (1)
316return Interop.Sys.MapTcpState((int)state);
System\Net\NetworkInformation\UnixIPGlobalProperties.cs (3)
73private static unsafe void ProcessIpv4Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr) 91private static unsafe void ProcessIpv6Address(void* pContext, byte* ifaceName, Interop.Sys.IpAddressInfo* ipAddr, uint* scopeId) 115Interop.Sys.EnumerateInterfaceAddresses(&context, &ProcessIpv4Address, &ProcessIpv6Address, null);
System\Net\NetworkInformation\UnixNetworkInterface.cs (3)
83protected unsafe void ProcessIpv4Address(Interop.Sys.IpAddressInfo* addressInfo) 90protected unsafe void ProcessIpv6Address(Interop.Sys.IpAddressInfo* addressInfo, uint scopeId) 99protected unsafe void ProcessLinkLayerAddress(Interop.Sys.LinkLayerAddressInfo* llAddr)