Documentation ¶
Index ¶
- Constants
- Variables
- type DialMode
- type DialerSelectionPolicy
- type DisableL4ChecksumPolicy
- type DnsRequestOutboundIndex
- type DnsResponseOutboundIndex
- type IpVersionStr
- type IpVersionType
- type L4ProtoStr
- type L4ProtoType
- type LanWanFlag
- type MatchType
- type OutboundIndex
- type ParamKey
- type RoutingDomainKey
Constants ¶
View Source
const ( UdpCheckLookupHost = "connectivitycheck.gstatic.com." DefaultDialTimeout = 8 * time.Second )
View Source
const ( BpfPinRoot = "/sys/fs/bpf" TaskCommLen = 16 )
View Source
const ( TproxyMark uint32 = 0x08000000 TproxyMarkString string = "0x08000000" // Should be aligned with nftables Recognize uint16 = 0x2017 LoopbackIfIndex = 1 )
View Source
const ( LinkHdrLen_None uint32 = 0 LinkHdrLen_Ethernet uint32 = 14 )
View Source
const ( ReloadSend = '0' + iota ReloadProcessing ReloadDone ReloadError )
View Source
const ( RoutingDomainKey_Full RoutingDomainKey = "full" RoutingDomainKey_Keyword RoutingDomainKey = "keyword" RoutingDomainKey_Suffix RoutingDomainKey = "suffix" RoutingDomainKey_Regex RoutingDomainKey = "regex" Function_Domain = "domain" Function_Ip = "ip" Function_SourceIp = "sip" Function_Port = "port" Function_SourcePort = "sport" Function_L4Proto = "l4proto" Function_IpVersion = "ipversion" Function_Mac = "mac" Function_ProcessName = "pname" Function_Dscp = "dscp" Function_QName = "qname" Function_QType = "qtype" Function_Upstream = "upstream" OutboundParam_Mark = "mark" )
View Source
const (
EthernetMtu = 1500
)
Variables ¶
View Source
var ( MaxMatchSetLen_ = "" MaxMatchSetLen = 32 * 2 )
View Source
var ( BasicFeatureVersion = internal.Version{5, 2, 0} // Deprecated: Ftrace does not support arm64 yet (Linux 6.2). FtraceFeatureVersion = internal.Version{5, 5, 0} UserspaceBatchUpdateFeatureVersion = internal.Version{5, 6, 0} CgSocketCookieFeatureVersion = internal.Version{5, 7, 0} SkAssignFeatureVersion = internal.Version{5, 7, 0} ChecksumFeatureVersion = internal.Version{5, 8, 0} ProgTypeSkLookupFeatureVersion = internal.Version{5, 9, 0} SockmapFeatureVersion = internal.Version{5, 10, 0} UserspaceBatchUpdateLpmTrieFeatureVersion = internal.Version{5, 13, 0} BpfTimerFeatureVersion = internal.Version{5, 15, 0} HelperBpfGetFuncIpVersionFeatureVersion = internal.Version{5, 15, 0} )
View Source
var (
AppName = "dae"
)
Functions ¶
This section is empty.
Types ¶
type DialerSelectionPolicy ¶
type DialerSelectionPolicy string
const ( DialerSelectionPolicy_Random DialerSelectionPolicy = "random" DialerSelectionPolicy_Fixed DialerSelectionPolicy = "fixed" DialerSelectionPolicy_MinAverage10Latencies DialerSelectionPolicy = "min_avg10" DialerSelectionPolicy_MinMovingAverageLatencies DialerSelectionPolicy = "min_moving_avg" DialerSelectionPolicy_MinLastLatency DialerSelectionPolicy = "min" )
type DisableL4ChecksumPolicy ¶
type DisableL4ChecksumPolicy uint32
const ( DisableL4ChecksumPolicy_EnableL4Checksum DisableL4ChecksumPolicy = iota DisableL4ChecksumPolicy_Restore DisableL4ChecksumPolicy_SetZero )
type DnsRequestOutboundIndex ¶
type DnsRequestOutboundIndex int16
const ( DnsRequestOutboundIndex_Reject DnsRequestOutboundIndex = 0xFC DnsRequestOutboundIndex_AsIs DnsRequestOutboundIndex = 0xFD DnsRequestOutboundIndex_LogicalOr DnsRequestOutboundIndex = 0xFE DnsRequestOutboundIndex_LogicalAnd DnsRequestOutboundIndex = 0xFF DnsRequestOutboundIndex_LogicalMask DnsRequestOutboundIndex = 0xFE DnsRequestOutboundIndex_UserDefinedMax = DnsRequestOutboundIndex_Reject - 1 )
func (DnsRequestOutboundIndex) String ¶
func (i DnsRequestOutboundIndex) String() string
type DnsResponseOutboundIndex ¶
type DnsResponseOutboundIndex uint8
const ( DnsResponseOutboundIndex_Accept DnsResponseOutboundIndex = 0xFC DnsResponseOutboundIndex_Reject DnsResponseOutboundIndex = 0xFD DnsResponseOutboundIndex_LogicalOr DnsResponseOutboundIndex = 0xFE DnsResponseOutboundIndex_LogicalAnd DnsResponseOutboundIndex = 0xFF DnsResponseOutboundIndex_LogicalMask DnsResponseOutboundIndex = 0xFE DnsResponseOutboundIndex_UserDefinedMax = DnsResponseOutboundIndex_Accept - 1 )
func (DnsResponseOutboundIndex) IsReserved ¶
func (i DnsResponseOutboundIndex) IsReserved() bool
func (DnsResponseOutboundIndex) String ¶
func (i DnsResponseOutboundIndex) String() string
type IpVersionStr ¶
type IpVersionStr string
const ( IpVersionStr_4 IpVersionStr = "4" IpVersionStr_6 IpVersionStr = "6" )
func IpVersionFromAddr ¶
func IpVersionFromAddr(addr netip.Addr) IpVersionStr
func (IpVersionStr) ToIpVersion ¶
func (v IpVersionStr) ToIpVersion() uint8
func (IpVersionStr) ToIpVersionType ¶
func (v IpVersionStr) ToIpVersionType() IpVersionType
type IpVersionType ¶
type IpVersionType uint8
const ( IpVersion_4 IpVersionType = 1 IpVersion_6 IpVersionType = 2 IpVersion_X IpVersionType = 3 )
func (IpVersionType) ToIpVersionStr ¶ added in v0.2.0
func (v IpVersionType) ToIpVersionStr() IpVersionStr
type L4ProtoStr ¶
type L4ProtoStr string
const ( L4ProtoStr_TCP L4ProtoStr = "tcp" L4ProtoStr_UDP L4ProtoStr = "udp" )
func (L4ProtoStr) ToL4Proto ¶
func (l L4ProtoStr) ToL4Proto() uint8
func (L4ProtoStr) ToL4ProtoType ¶
func (l L4ProtoStr) ToL4ProtoType() L4ProtoType
type L4ProtoType ¶
type L4ProtoType uint8
const ( L4ProtoType_TCP L4ProtoType = 1 L4ProtoType_UDP L4ProtoType = 2 L4ProtoType_TCP_UDP L4ProtoType = 3 )
type LanWanFlag ¶
type LanWanFlag uint8
type OutboundIndex ¶
type OutboundIndex uint8
const ( OutboundDirect OutboundIndex = iota OutboundBlock OutboundUserDefinedMin OutboundMustRules OutboundIndex = 0xFC OutboundControlPlaneRouting OutboundIndex = 0xFD OutboundLogicalOr OutboundIndex = 0xFE OutboundLogicalAnd OutboundIndex = 0xFF OutboundLogicalMask OutboundIndex = 0xFE OutboundUserDefinedMax = OutboundMustRules - 1 )
func (OutboundIndex) IsReserved ¶
func (i OutboundIndex) IsReserved() bool
func (OutboundIndex) String ¶
func (i OutboundIndex) String() string
type RoutingDomainKey ¶
type RoutingDomainKey string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.