Documentation ¶
Index ¶
- Constants
- func AddAclEntry(aclKey *AclKey, aclVal *AclVal) error
- func AddIFaceEntry(ifaceKey *IFaceKey, ifaceVal *IFaceVal) error
- func AddNatEntry(natKey *NatKey, natVal *NatVal) error
- func AddTCPFlowEntry(flowKey *FlowKey, flowVal *FlowTCPVal) error
- func AddTCPOptEntry(optKey *OptKey, optVal *OptVal) error
- func AddTraceIPEntry(traceIPKey *TraceIPKey, traceIPVal *TraceIPVal) error
- func AddTracePortEntry(tracePortKey *TracePortKey, tracePortVal *TracePortVal) error
- func AddUDPFlowEntry(flowKey *FlowKey, flowVal *FlowUDPVal) error
- func AddUDPOptEntry(optKey *OptKey, optVal *OptVal) error
- func DelAclEntry(aclKey *AclKey) error
- func DelIFaceEntry(ifaceKey *IFaceKey) error
- func DelNatEntry(natKey *NatKey) error
- func DelTCPFlowEntry(flowKey *FlowKey) error
- func DelTCPOptEntry(optKey *OptKey) error
- func DelTraceIPEntry(traceIPKey *TraceIPKey) error
- func DelTracePortEntry(tracePortKey *TracePortKey) error
- func DelUDPFlowEntry(flowKey *FlowKey) error
- func DelUDPOptEntry(optKey *OptKey) error
- func FlushIdleTCPFlowEntries(idleSeconds, batchSize int) (int, error)
- func FlushIdleUDPFlowEntries(idleSeconds, batchSize int) (int, error)
- func GetAclEntries() map[AclKey]AclVal
- func GetIFaceEntries() map[IFaceKey]IFaceVal
- func InitProgEntries() error
- func SetXNetCfg(cfgVal *CfgVal) error
- func ShowAclEntries()
- func ShowCfgEntries()
- func ShowIFaceEntries()
- func ShowNatEntries()
- func ShowProgEntries()
- func ShowTCPFlowEntries()
- func ShowTCPOptEntries()
- func ShowTraceIPEntries()
- func ShowTracePortEntries()
- func ShowUDPFlowEntries()
- func ShowUDPOptEntries()
- type Acl
- type AclKey
- type AclVal
- type CfgKey
- type CfgVal
- type FlowKey
- type FlowTCPVal
- type FlowUDPVal
- type FsmAclKeyT
- type FsmAclOpT
- type FsmCfgT
- type FsmFlowT
- type FsmFlowTOpT
- type FsmFlowUOpT
- type FsmIfInfoT
- type FsmIfNameT
- type FsmNatKeyT
- type FsmNatOpT
- type FsmOptKeyT
- type FsmTrIpT
- type FsmTrOpT
- type FsmTrPortT
- type IFaceKey
- type IFaceVal
- type L4Proto
- type NatKey
- type NatVal
- type OptKey
- type OptVal
- type ProgKey
- type ProgVal
- type TcDir
- type TraceIPKey
- type TraceIPVal
- type TracePortKey
- type TracePortVal
- type UpStream
Constants ¶
View Source
const ( NF_DENY = 0 NF_ALLOW = 1 NF_XNAT = 2 NF_RDIR = 4 NF_SKIP_SM = 8 )
View Source
const ( CfgFlagOffsetIPv6ProtoDenyAll uint8 = iota CfgFlagOffsetIPv4TCPProtoDenyAll CfgFlagOffsetIPv4TCPProtoAllowAll CfgFlagOffsetIPv4TCPProtoAllowNatEscape CfgFlagOffsetIPv4UDPProtoDenyAll CfgFlagOffsetIPv4UDPProtoAllowAll CfgFlagOffsetIPv4UDPProtoAllowNatEscape CfgFlagOffsetIPv4OTHProtoDenyAll CfgFlagOffsetIPv4TCPNatByIpPortOn CfgFlagOffsetIPv4TCPNatByIpOn CfgFlagOffsetIPv4TCPNatAllOff CfgFlagOffsetIPv4TCPNatOptOn CfgFlagOffsetIPv4TCPNatOptWithLocalAddrOn CfgFlagOffsetIPv4TCPNatOptWithLocalPortOn CfgFlagOffsetIPv4UDPNatByIpPortOn CfgFlagOffsetIPv4UDPNatByIpOn CfgFlagOffsetIPv4UDPNatByPortOn CfgFlagOffsetIPv4UDPNatAllOff CfgFlagOffsetIPv4UDPNatOptOn CfgFlagOffsetIPv4UDPNatOptWithLocalAddrOn CfgFlagOffsetIPv4UDPNatOptWithLocalPortOn CfgFlagOffsetIPv4AclCheckOn CfgFlagOffsetIPv4TraceHdrOn CfgFlagOffsetIPv4TraceNatOn CfgFlagOffsetIPv4TraceOptOn CfgFlagOffsetIPv4TraceAclOn CfgFlagOffsetIPv4TraceFlowOn CfgFlagOffsetIPv4TraceByIpOn CfgFlagOffsetIPv4TraceByPortOn CfgFlagMax )
Variables ¶
This section is empty.
Functions ¶
func AddAclEntry ¶
func AddIFaceEntry ¶
func AddNatEntry ¶
func AddTCPFlowEntry ¶
func AddTCPFlowEntry(flowKey *FlowKey, flowVal *FlowTCPVal) error
func AddTCPOptEntry ¶
func AddTraceIPEntry ¶
func AddTraceIPEntry(traceIPKey *TraceIPKey, traceIPVal *TraceIPVal) error
func AddTracePortEntry ¶
func AddTracePortEntry(tracePortKey *TracePortKey, tracePortVal *TracePortVal) error
func AddUDPFlowEntry ¶
func AddUDPFlowEntry(flowKey *FlowKey, flowVal *FlowUDPVal) error
func AddUDPOptEntry ¶
func DelAclEntry ¶
func DelIFaceEntry ¶
func DelNatEntry ¶
func DelTCPFlowEntry ¶
func DelTCPOptEntry ¶
func DelTraceIPEntry ¶
func DelTraceIPEntry(traceIPKey *TraceIPKey) error
func DelTracePortEntry ¶
func DelTracePortEntry(tracePortKey *TracePortKey) error
func DelUDPFlowEntry ¶
func DelUDPOptEntry ¶
func FlushIdleTCPFlowEntries ¶
func FlushIdleUDPFlowEntries ¶
func GetAclEntries ¶
func GetIFaceEntries ¶
func InitProgEntries ¶
func InitProgEntries() error
func SetXNetCfg ¶
func ShowAclEntries ¶
func ShowAclEntries()
func ShowCfgEntries ¶
func ShowCfgEntries()
func ShowIFaceEntries ¶
func ShowIFaceEntries()
func ShowNatEntries ¶
func ShowNatEntries()
func ShowProgEntries ¶
func ShowProgEntries()
func ShowTCPFlowEntries ¶
func ShowTCPFlowEntries()
func ShowTCPOptEntries ¶
func ShowTCPOptEntries()
func ShowTraceIPEntries ¶
func ShowTraceIPEntries()
func ShowTracePortEntries ¶
func ShowTracePortEntries()
func ShowUDPFlowEntries ¶
func ShowUDPFlowEntries()
func ShowUDPOptEntries ¶
func ShowUDPOptEntries()
Types ¶
type FlowTCPVal ¶
type FlowTCPVal FsmFlowTOpT
func (*FlowTCPVal) String ¶
func (t *FlowTCPVal) String() string
type FlowUDPVal ¶
type FlowUDPVal FsmFlowUOpT
func (*FlowUDPVal) String ¶
func (t *FlowUDPVal) String() string
type FsmAclKeyT ¶
type FsmFlowTOpT ¶
type FsmFlowTOpT struct { Lock struct{ Val uint32 } FlowDir uint8 Fin uint8 Nfs [2]uint8 Atime uint64 Xnat struct { Xmac [6]uint8 Rmac [6]uint8 Xaddr [4]uint32 Raddr [4]uint32 Xport uint16 Rport uint16 } Trans struct { Tcp struct { Conns [2]struct { Seq uint32 PrevSeq uint32 PrevAckSeq uint32 InitAcks uint32 } State uint8 FinDir uint8 // contains filtered or unexported fields } } DoTrans uint8 // contains filtered or unexported fields }
type FsmFlowUOpT ¶
type FsmFlowUOpT struct { Lock struct{ Val uint32 } FlowDir uint8 Fin uint8 Nfs [2]uint8 Atime uint64 Xnat struct { Xmac [6]uint8 Rmac [6]uint8 Xaddr [4]uint32 Raddr [4]uint32 Xport uint16 Rport uint16 } Trans struct { Udp struct{ Conns struct{ Pkts uint32 } } // contains filtered or unexported fields } DoTrans uint8 // contains filtered or unexported fields }
type FsmIfInfoT ¶
type FsmIfNameT ¶
type FsmNatKeyT ¶
type FsmOptKeyT ¶
type FsmTrPortT ¶
type FsmTrPortT struct{ Port uint16 }
type IFaceKey ¶
type IFaceKey FsmIfNameT
type TraceIPKey ¶
type TraceIPKey FsmTrIpT
func (*TraceIPKey) String ¶
func (t *TraceIPKey) String() string
type TraceIPVal ¶
type TraceIPVal FsmTrOpT
func (*TraceIPVal) String ¶
func (t *TraceIPVal) String() string
type TracePortKey ¶
type TracePortKey FsmTrPortT
func (*TracePortKey) String ¶
func (t *TracePortKey) String() string
type TracePortVal ¶
type TracePortVal FsmTrOpT
func (*TracePortVal) String ¶
func (t *TracePortVal) String() string
Click to show internal directories.
Click to hide internal directories.