Documentation ¶
Index ¶
- Variables
- func IPToUInt32(ip net.IP) uint32
- func StringToUint32(ip string) uint32
- type Config
- type Conntracker
- type IPTranslation
- type NetlinkConntracker
- func (ctr *NetlinkConntracker) GetDNATTuple(srcIP uint32, dstIP uint32, srcPort uint16, dstPort uint16, isUdp uint32) *IPTranslation
- func (ctr *NetlinkConntracker) GetDNATTupleWithString(srcIP string, dstIP string, srcPort uint16, dstPort uint16, isUdp uint32) *IPTranslation
- func (ctr *NetlinkConntracker) GetStats() map[string]int64
- type NoopConntracker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IPToUInt32 ¶
func StringToUint32 ¶
Types ¶
type Conntracker ¶
type Conntracker interface { GetDNATTupleWithString(srcIP string, dstIP string, srcPort uint16, dstPort uint16, isUdp uint32) *IPTranslation GetDNATTuple(srcIP uint32, dstIP uint32, srcPort uint16, dstPort uint16, isUdp uint32) *IPTranslation GetStats() map[string]int64 }
func NewConntracker ¶
func NewConntracker(config *Config) (Conntracker, error)
type IPTranslation ¶
type NetlinkConntracker ¶
type NetlinkConntracker struct {
// contains filtered or unexported fields
}
func (*NetlinkConntracker) GetDNATTuple ¶
func (ctr *NetlinkConntracker) GetDNATTuple(srcIP uint32, dstIP uint32, srcPort uint16, dstPort uint16, isUdp uint32) *IPTranslation
func (*NetlinkConntracker) GetDNATTupleWithString ¶
func (ctr *NetlinkConntracker) GetDNATTupleWithString(srcIP string, dstIP string, srcPort uint16, dstPort uint16, isUdp uint32) *IPTranslation
func (*NetlinkConntracker) GetStats ¶
func (ctr *NetlinkConntracker) GetStats() map[string]int64
type NoopConntracker ¶
type NoopConntracker struct {
// contains filtered or unexported fields
}
func NewNoopConntracker ¶
func NewNoopConntracker(cfg *Config) *NoopConntracker
func (*NoopConntracker) GetDNATTuple ¶
func (ctr *NoopConntracker) GetDNATTuple(_ uint32, _ uint32, _ uint16, _ uint16, _ uint32) *IPTranslation
func (*NoopConntracker) GetDNATTupleWithString ¶
func (ctr *NoopConntracker) GetDNATTupleWithString(_ string, _ string, _ uint16, _ uint16, _ uint32) *IPTranslation
func (*NoopConntracker) GetStats ¶
func (ctr *NoopConntracker) GetStats() map[string]int64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.