Documentation ¶
Index ¶
- Variables
- func AddToDebugInfo(di *debug.Info)
- func GetIPTablesChains() ([]string, error)
- func ReportMultiPeerUDPTunnelIssue(p *process.Process)
- func ReportSecureDNSBypassIssue(p *process.Process)
- func SelfCheckIsFailing() bool
- func SetNameserverListenIP(ip net.IP)
- func SubmitDNSCheckDomain(subdomain string) (respondWith net.IP)
- func SubmitSystemIntegrationCheckPacket(p packet.Packet)
- type Compat
- type SimplifiedWFPState
- type WFPCallout
- type WFPFilter
- type WFPProvider
- type WFPSubLayer
Constants ¶
This section is empty.
Variables ¶
var ( // SystemIntegrationCheckDstIP is the IP address to send a packet to for the // system integration test. SystemIntegrationCheckDstIP = net.IPv4(127, 65, 67, 75) // SystemIntegrationCheckProtocol is the IP protocol to use for the system // integration test. SystemIntegrationCheckProtocol = packet.AnyHostInternalProtocol61 // DNSCheckInternalDomainScope is the domain scope to use for dns checks. DNSCheckInternalDomainScope = ".self-check." + resolver.InternalSpecialUseDomain )
Functions ¶
func AddToDebugInfo ¶
AddToDebugInfo adds compatibility data to the given debug.Info.
func GetIPTablesChains ¶
GetIPTablesChains returns the chain names currently in ip(6)tables.
func ReportMultiPeerUDPTunnelIssue ¶
ReportMultiPeerUDPTunnelIssue reports a multi-peer UDP tunnel for the given process.
func ReportSecureDNSBypassIssue ¶
ReportSecureDNSBypassIssue reports a DNS bypassing issue for the given process.
func SelfCheckIsFailing ¶
func SelfCheckIsFailing() bool
SelfCheckIsFailing returns whether the self check is currently failing. This returns true after the first check fails, and does not wait for the failing threshold to be met.
func SetNameserverListenIP ¶
SetNameserverListenIP sets the IP address the nameserver is listening on. The IP address is used in compatibility notifications.
func SubmitDNSCheckDomain ¶
SubmitDNSCheckDomain submits a subdomain for the dns check.
func SubmitSystemIntegrationCheckPacket ¶
SubmitSystemIntegrationCheckPacket submit a packet for the system integrity check.
Types ¶
type Compat ¶ added in v1.6.19
type Compat struct {
// contains filtered or unexported fields
}
Compat is the compatibility check module.
type SimplifiedWFPState ¶
type SimplifiedWFPState struct { Providers []*WFPProvider SubLayers []*WFPSubLayer Callouts []*WFPCallout Filters []*WFPFilter }
SimplifiedWFPState is a simplified version of the full WFP state.
func GetWFPState ¶
func GetWFPState() (*SimplifiedWFPState, error)
GetWFPState queries the system for the WFP state and returns a simplified and cleaned version.
func (*SimplifiedWFPState) AsTable ¶
func (sw *SimplifiedWFPState) AsTable() string
AsTable formats the simplified WFP state as a table.
func (*SimplifiedWFPState) Keys ¶
func (sw *SimplifiedWFPState) Keys() map[string]struct{}
Keys returns all keys found in the WFP state.
type WFPCallout ¶
type WFPCallout struct { Name string Description string CalloutKey string ProviderKey string ApplicableLayer string }
WFPCallout represents a WFP Callout.
type WFPFilter ¶
type WFPFilter struct { Name string Description string FilterKey string ProviderKey string LayerKey string SubLayerKey string }
WFPFilter represents a WFP Filter.
type WFPProvider ¶
WFPProvider represents a WFP Provider.
type WFPSubLayer ¶
WFPSubLayer represents a WFP SubLayer.