Documentation ¶
Index ¶
Constants ¶
View Source
const ( MarkSeen = 0x01000000 MarkSeenMask = MarkSeen MarkSeenBypass = MarkSeen | 0x02000000 MarkSeenBypassMask = MarkSeenMask | MarkSeenBypass MarkSeenFallThrough = MarkSeen | 0x04000000 MarkSeenFallThroughMask = MarkSeenMask | MarkSeenFallThrough MarkSeenBypassForward = MarkSeenBypass | 0x00300000 MarkSeenBypassForwardMask = MarkSeenBypassMask | 0x00f00000 MarkSeenNATOutgoing = MarkSeenBypass | 0x00800000 MarkSeenNATOutgoingMask = MarkSeenBypassMask | 0x00f00000 MarkSeenMASQ = MarkSeenBypass | 0x00600000 MarkSeenMASQMask = MarkSeenBypassMask | 0x00f00000 MarkSeenSkipFIB = MarkSeen | 0x00100000 MarkLinuxConntrackEstablished = 0x08000000 MarkLinuxConntrackEstablishedMask = 0x08000000 MarkSeenToNatIfaceOut = 0x41000000 MarkSeenFromNatIfaceOut = 0x81000000 MarksMask uint32 = 0x1ff00000 )
View Source
const ( ProgIndexMain = iota ProgIndexPolicy ProgIndexAllowed ProgIndexIcmp ProgIndexDrop ProgIndexHostCtConflict ProgIndexIcmpInnerNat ProgIndexNewFlow ProgIndexMainDebug ProgIndexPolicyDebug ProgIndexAllowedDebug ProgIndexIcmpDebug ProgIndexDropDebug ProgIndexHostCtConflictDebug ProgIndexIcmpInnerNatDebug ProgIndexNewFlowDebug ProgIndexEndDebug ProgIndexEnd ProgIndexDebug = ProgIndexMain ProgIndexNoDebug = ProgIndexMain )
View Source
const ( RPFEnforceOptionDisabled = iota RPFEnforceOptionStrict RPFEnforceOptionLoose )
Variables ¶
View Source
var ProgramNames = []string{
"calico_tc_main",
"calico_tc_norm_pol_tail",
"calico_tc_skb_accepted_entrypoint",
"calico_tc_skb_send_icmp_replies",
"calico_tc_skb_drop",
"calico_tc_host_ct_conflict",
"calico_tc_skb_icmp_inner_nat",
"calico_tc_skb_new_flow_entrypoint",
"calico_tc_main",
"calico_tc_norm_pol_tail",
"calico_tc_skb_accepted_entrypoint",
"calico_tc_skb_send_icmp_replies",
"calico_tc_skb_drop",
"calico_tc_host_ct_conflict",
"calico_tc_skb_icmp_inner_nat",
"calico_tc_skb_new_flow_entrypoint",
"calico_tc_main",
"calico_tc_norm_pol_tail",
"calico_tc_skb_accepted_entrypoint",
"calico_tc_skb_send_icmp_replies",
"calico_tc_skb_drop",
"calico_tc_host_ct_conflict",
"calico_tc_skb_icmp_inner_nat",
"calico_tc_skb_new_flow_entrypoint",
"calico_tc_main",
"calico_tc_norm_pol_tail",
"calico_tc_skb_accepted_entrypoint",
"calico_tc_skb_send_icmp_replies",
"calico_tc_skb_drop",
"calico_tc_host_ct_conflict",
"calico_tc_skb_icmp_inner_nat",
"calico_tc_skb_new_flow_entrypoint",
}
Functions ¶
func ProgFilename ¶
func ProgFilename(ipVer int, epType EndpointType, toOrFrom ToOrFromEp, epToHostDrop, fib, dsr bool, logLevel string, btf bool) string
func SectionName ¶
func SectionName(endpointType EndpointType, fromOrTo ToOrFromEp) string
Types ¶
type EndpointType ¶
type EndpointType string
const ( EpTypeWorkload EndpointType = "workload" EpTypeHost EndpointType = "host" EpTypeTunnel EndpointType = "tunnel" EpTypeL3Device EndpointType = "l3dev" EpTypeNAT EndpointType = "nat" EpTypeLO EndpointType = "lo" )
type ToOrFromEp ¶
type ToOrFromEp string
const ( FromEp ToOrFromEp = "from" ToEp ToOrFromEp = "to" )
Click to show internal directories.
Click to hide internal directories.