Files
Aug2021-Cpp2IL-Dump/System/Net/Sockets/IPProtectionLevel.cs
T
2026-04-10 22:50:51 +02:00

29 lines
2.1 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.</summary>
// Token: 0x020002D8 RID: 728
[Token(Token = "0x20002D8")]
public enum IPProtectionLevel
{
/// <summary>The IP protection level is unspecified. On Windows 7 and Windows Server 2008 R2, the default value for the IP Protection level on a socket is unspecified.</summary>
// Token: 0x04000BBB RID: 3003
[Token(Token = "0x4000BBB")]
Unspecified = -1,
/// <summary>The IP protection level is unrestricted. This value would be used by applications designed to operate across the Internet, including applications taking advantage of IPv6 NAT traversal capabilities built into Windows (Teredo, for example). These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2008 R2 and Windows Vista, the default value for the IP Protection level on a socket is unrestricted.</summary>
// Token: 0x04000BBC RID: 3004
[Token(Token = "0x4000BBC")]
Unrestricted = 10,
/// <summary>The IP protection level is edge restricted. This value would be used by applications designed to operate across the Internet. This setting does not allow Network Address Translation (NAT) traversal using the Windows Teredo implementation. These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2003 and Windows XP, the default value for the IP Protection level on a socket is edge restricted.</summary>
// Token: 0x04000BBD RID: 3005
[Token(Token = "0x4000BBD")]
EdgeRestricted = 20,
/// <summary>The IP protection level is restricted. This value would be used by intranet applications that do not implement Internet scenarios. These applications are generally not tested or hardened against Internet-style attacks. This setting will limit the received traffic to link-local only.</summary>
// Token: 0x04000BBE RID: 3006
[Token(Token = "0x4000BBE")]
Restricted = 30
}
}