Documentation ¶
Index ¶
- func ApplyBpfFilter(filter []bpf.Instruction, fd int) (err error)
- func ConvertIP4(ip uint32) net.IP
- func ConvertIP6(ip [4]uint32) net.IP
- func GetBPFFilterIngress(port int) []bpf.Instruction
- func GetBpfFilter(port int) []bpf.Instruction
- func GetIPAddress[T uint32 | [4]uint32](ip T, mapper func(T) net.IP) net.IP
- func Htons(v uint16) int
- func IsValidMode(mode string) bool
- func RemoveBpfFilter(fd int) (err error)
- type AfpacketSniffer
- func (c *AfpacketSniffer) Channel() chan dnsutils.DNSMessage
- func (c *AfpacketSniffer) GetName() string
- func (c *AfpacketSniffer) Listen() error
- func (c *AfpacketSniffer) LogError(msg string, v ...interface{})
- func (c *AfpacketSniffer) LogInfo(msg string, v ...interface{})
- func (c *AfpacketSniffer) Loggers() ([]chan dnsutils.DNSMessage, []string)
- func (c *AfpacketSniffer) ReadConfig()
- func (c *AfpacketSniffer) ReloadConfig(config *pkgconfig.Config)
- func (c *AfpacketSniffer) Run()
- func (c *AfpacketSniffer) SetLoggers(loggers []dnsutils.Worker)
- func (c *AfpacketSniffer) Stop()
- type Dnstap
- func (c *Dnstap) Channel() chan dnsutils.DNSMessage
- func (c *Dnstap) GetName() string
- func (c *Dnstap) HandleConn(conn net.Conn)
- func (c *Dnstap) Listen() error
- func (c *Dnstap) LogConnError(connID int, msg string, v ...interface{})
- func (c *Dnstap) LogConnInfo(connID int, msg string, v ...interface{})
- func (c *Dnstap) LogError(msg string, v ...interface{})
- func (c *Dnstap) LogInfo(msg string, v ...interface{})
- func (c *Dnstap) Loggers() ([]chan dnsutils.DNSMessage, []string)
- func (c *Dnstap) MonitorCollector()
- func (c *Dnstap) ReadConfig()
- func (c *Dnstap) ReloadConfig(config *pkgconfig.Config)
- func (c *Dnstap) Run()
- func (c *Dnstap) SetLoggers(loggers []dnsutils.Worker)
- func (c *Dnstap) Stop()
- type DnstapProxifier
- func (c *DnstapProxifier) Channel() chan dnsutils.DNSMessage
- func (c *DnstapProxifier) GetName() string
- func (c *DnstapProxifier) HandleConn(conn net.Conn)
- func (c *DnstapProxifier) HandleFrame(recvFrom chan []byte, sendTo []chan dnsutils.DNSMessage)
- func (c *DnstapProxifier) Listen() error
- func (c *DnstapProxifier) LogError(msg string, v ...interface{})
- func (c *DnstapProxifier) LogInfo(msg string, v ...interface{})
- func (c *DnstapProxifier) Loggers() []chan dnsutils.DNSMessage
- func (c *DnstapProxifier) ReadConfig()
- func (c *DnstapProxifier) ReloadConfig(config *pkgconfig.Config)
- func (c *DnstapProxifier) Run()
- func (c *DnstapProxifier) SetLoggers(loggers []dnsutils.Worker)
- func (c *DnstapProxifier) Stop()
- type FileIngestor
- func (c *FileIngestor) Channel() chan dnsutils.DNSMessage
- func (c *FileIngestor) GetName() string
- func (c *FileIngestor) LogError(msg string, v ...interface{})
- func (c *FileIngestor) LogInfo(msg string, v ...interface{})
- func (c *FileIngestor) Loggers() ([]chan dnsutils.DNSMessage, []string)
- func (c *FileIngestor) ProcessDnstap(filePath string) error
- func (c *FileIngestor) ProcessFile(filePath string)
- func (c *FileIngestor) ProcessPcap(filePath string)
- func (c *FileIngestor) ReadConfig()
- func (c *FileIngestor) RegisterEvent(filePath string)
- func (c *FileIngestor) ReloadConfig(config *pkgconfig.Config)
- func (c *FileIngestor) RemoveEvent(filePath string)
- func (c *FileIngestor) Run()
- func (c *FileIngestor) SetLoggers(loggers []dnsutils.Worker)
- func (c *FileIngestor) Stop()
- type ProtobufPowerDNS
- func (c *ProtobufPowerDNS) Channel() chan dnsutils.DNSMessage
- func (c *ProtobufPowerDNS) GetName() string
- func (c *ProtobufPowerDNS) HandleConn(conn net.Conn)
- func (c *ProtobufPowerDNS) Listen() error
- func (c *ProtobufPowerDNS) LogConnError(connID int, msg string, v ...interface{})
- func (c *ProtobufPowerDNS) LogConnInfo(connID int, msg string, v ...interface{})
- func (c *ProtobufPowerDNS) LogError(msg string, v ...interface{})
- func (c *ProtobufPowerDNS) LogInfo(msg string, v ...interface{})
- func (c *ProtobufPowerDNS) Loggers() ([]chan dnsutils.DNSMessage, []string)
- func (c *ProtobufPowerDNS) MonitorCollector()
- func (c *ProtobufPowerDNS) ReadConfig()
- func (c *ProtobufPowerDNS) ReloadConfig(config *pkgconfig.Config)
- func (c *ProtobufPowerDNS) Run()
- func (c *ProtobufPowerDNS) SetLoggers(loggers []dnsutils.Worker)
- func (c *ProtobufPowerDNS) Stop()
- type TZSPSniffer
- func (c *TZSPSniffer) Channel() chan dnsutils.DNSMessage
- func (c *TZSPSniffer) GetName() string
- func (c *TZSPSniffer) Listen() error
- func (c *TZSPSniffer) LogError(msg string, v ...interface{})
- func (c *TZSPSniffer) LogInfo(msg string, v ...interface{})
- func (c *TZSPSniffer) Loggers() ([]chan dnsutils.DNSMessage, []string)
- func (c *TZSPSniffer) ReadConfig()
- func (c *TZSPSniffer) ReloadConfig(config *pkgconfig.Config)
- func (c *TZSPSniffer) Run()
- func (c *TZSPSniffer) SetLoggers(loggers []dnsutils.Worker)
- func (c *TZSPSniffer) Stop()
- type Tail
- func (c *Tail) Channel() chan dnsutils.DNSMessage
- func (c *Tail) Follow() error
- func (c *Tail) GetName() string
- func (c *Tail) LogError(msg string, v ...interface{})
- func (c *Tail) LogInfo(msg string, v ...interface{})
- func (c *Tail) Loggers() []chan dnsutils.DNSMessage
- func (c *Tail) ReadConfig()
- func (c *Tail) ReloadConfig(config *pkgconfig.Config)
- func (c *Tail) Run()
- func (c *Tail) SetLoggers(loggers []dnsutils.Worker)
- func (c *Tail) Stop()
- type XDPSniffer
- func (c *XDPSniffer) Channel() chan dnsutils.DNSMessage
- func (c *XDPSniffer) GetName() string
- func (c *XDPSniffer) LogError(msg string, v ...interface{})
- func (c *XDPSniffer) LogInfo(msg string, v ...interface{})
- func (c *XDPSniffer) Loggers() ([]chan dnsutils.DNSMessage, []string)
- func (c *XDPSniffer) ReadConfig()
- func (c *XDPSniffer) ReloadConfig(config *pkgconfig.Config)
- func (c *XDPSniffer) Run()
- func (c *XDPSniffer) SetLoggers(loggers []dnsutils.Worker)
- func (c *XDPSniffer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBpfFilter ¶
func ApplyBpfFilter(filter []bpf.Instruction, fd int) (err error)
func ConvertIP4 ¶ added in v0.39.0
func ConvertIP6 ¶ added in v0.39.0
func GetBPFFilterIngress ¶ added in v0.39.0
func GetBPFFilterIngress(port int) []bpf.Instruction
func GetBpfFilter ¶
func GetBpfFilter(port int) []bpf.Instruction
func GetIPAddress ¶ added in v0.39.0
func IsValidMode ¶ added in v0.26.0
func RemoveBpfFilter ¶
Types ¶
type AfpacketSniffer ¶ added in v0.27.0
type AfpacketSniffer struct {
// contains filtered or unexported fields
}
func NewAfpacketSniffer ¶ added in v0.27.0
func (*AfpacketSniffer) Channel ¶ added in v0.27.0
func (c *AfpacketSniffer) Channel() chan dnsutils.DNSMessage
func (*AfpacketSniffer) GetName ¶ added in v0.27.0
func (c *AfpacketSniffer) GetName() string
func (*AfpacketSniffer) Listen ¶ added in v0.27.0
func (c *AfpacketSniffer) Listen() error
func (*AfpacketSniffer) LogError ¶ added in v0.27.0
func (c *AfpacketSniffer) LogError(msg string, v ...interface{})
func (*AfpacketSniffer) LogInfo ¶ added in v0.27.0
func (c *AfpacketSniffer) LogInfo(msg string, v ...interface{})
func (*AfpacketSniffer) Loggers ¶ added in v0.27.0
func (c *AfpacketSniffer) Loggers() ([]chan dnsutils.DNSMessage, []string)
func (*AfpacketSniffer) ReadConfig ¶ added in v0.27.0
func (c *AfpacketSniffer) ReadConfig()
func (*AfpacketSniffer) ReloadConfig ¶ added in v0.38.0
func (c *AfpacketSniffer) ReloadConfig(config *pkgconfig.Config)
func (*AfpacketSniffer) Run ¶ added in v0.27.0
func (c *AfpacketSniffer) Run()
func (*AfpacketSniffer) SetLoggers ¶ added in v0.27.0
func (c *AfpacketSniffer) SetLoggers(loggers []dnsutils.Worker)
func (*AfpacketSniffer) Stop ¶ added in v0.27.0
func (c *AfpacketSniffer) Stop()
type Dnstap ¶ added in v0.3.0
func (*Dnstap) Channel ¶ added in v0.3.0
func (c *Dnstap) Channel() chan dnsutils.DNSMessage
func (*Dnstap) HandleConn ¶ added in v0.3.0
func (*Dnstap) LogConnError ¶ added in v0.33.0
func (*Dnstap) LogConnInfo ¶ added in v0.33.0
func (*Dnstap) Loggers ¶ added in v0.3.0
func (c *Dnstap) Loggers() ([]chan dnsutils.DNSMessage, []string)
func (*Dnstap) MonitorCollector ¶ added in v0.33.0
func (c *Dnstap) MonitorCollector()
func (*Dnstap) ReadConfig ¶ added in v0.3.0
func (c *Dnstap) ReadConfig()
func (*Dnstap) ReloadConfig ¶ added in v0.38.0
func (*Dnstap) SetLoggers ¶ added in v0.22.0
type DnstapProxifier ¶ added in v0.26.0
type DnstapProxifier struct {
// contains filtered or unexported fields
}
func NewDnstapProxifier ¶ added in v0.26.0
func (*DnstapProxifier) Channel ¶ added in v0.26.0
func (c *DnstapProxifier) Channel() chan dnsutils.DNSMessage
func (*DnstapProxifier) GetName ¶ added in v0.26.0
func (c *DnstapProxifier) GetName() string
func (*DnstapProxifier) HandleConn ¶ added in v0.26.0
func (c *DnstapProxifier) HandleConn(conn net.Conn)
func (*DnstapProxifier) HandleFrame ¶ added in v0.26.0
func (c *DnstapProxifier) HandleFrame(recvFrom chan []byte, sendTo []chan dnsutils.DNSMessage)
func (*DnstapProxifier) Listen ¶ added in v0.26.0
func (c *DnstapProxifier) Listen() error
func (*DnstapProxifier) LogError ¶ added in v0.26.0
func (c *DnstapProxifier) LogError(msg string, v ...interface{})
func (*DnstapProxifier) LogInfo ¶ added in v0.26.0
func (c *DnstapProxifier) LogInfo(msg string, v ...interface{})
func (*DnstapProxifier) Loggers ¶ added in v0.26.0
func (c *DnstapProxifier) Loggers() []chan dnsutils.DNSMessage
func (*DnstapProxifier) ReadConfig ¶ added in v0.26.0
func (c *DnstapProxifier) ReadConfig()
func (*DnstapProxifier) ReloadConfig ¶ added in v0.38.0
func (c *DnstapProxifier) ReloadConfig(config *pkgconfig.Config)
func (*DnstapProxifier) Run ¶ added in v0.26.0
func (c *DnstapProxifier) Run()
func (*DnstapProxifier) SetLoggers ¶ added in v0.26.0
func (c *DnstapProxifier) SetLoggers(loggers []dnsutils.Worker)
func (*DnstapProxifier) Stop ¶ added in v0.26.0
func (c *DnstapProxifier) Stop()
type FileIngestor ¶ added in v0.26.0
type FileIngestor struct {
// contains filtered or unexported fields
}
func NewFileIngestor ¶ added in v0.26.0
func (*FileIngestor) Channel ¶ added in v0.26.0
func (c *FileIngestor) Channel() chan dnsutils.DNSMessage
func (*FileIngestor) GetName ¶ added in v0.26.0
func (c *FileIngestor) GetName() string
func (*FileIngestor) LogError ¶ added in v0.26.0
func (c *FileIngestor) LogError(msg string, v ...interface{})
func (*FileIngestor) LogInfo ¶ added in v0.26.0
func (c *FileIngestor) LogInfo(msg string, v ...interface{})
func (*FileIngestor) Loggers ¶ added in v0.26.0
func (c *FileIngestor) Loggers() ([]chan dnsutils.DNSMessage, []string)
func (*FileIngestor) ProcessDnstap ¶ added in v0.26.0
func (c *FileIngestor) ProcessDnstap(filePath string) error
func (*FileIngestor) ProcessFile ¶ added in v0.26.0
func (c *FileIngestor) ProcessFile(filePath string)
func (*FileIngestor) ProcessPcap ¶ added in v0.26.0
func (c *FileIngestor) ProcessPcap(filePath string)
func (*FileIngestor) ReadConfig ¶ added in v0.26.0
func (c *FileIngestor) ReadConfig()
func (*FileIngestor) RegisterEvent ¶ added in v0.26.0
func (c *FileIngestor) RegisterEvent(filePath string)
func (*FileIngestor) ReloadConfig ¶ added in v0.38.0
func (c *FileIngestor) ReloadConfig(config *pkgconfig.Config)
func (*FileIngestor) RemoveEvent ¶ added in v0.26.0
func (c *FileIngestor) RemoveEvent(filePath string)
func (*FileIngestor) Run ¶ added in v0.26.0
func (c *FileIngestor) Run()
func (*FileIngestor) SetLoggers ¶ added in v0.26.0
func (c *FileIngestor) SetLoggers(loggers []dnsutils.Worker)
func (*FileIngestor) Stop ¶ added in v0.26.0
func (c *FileIngestor) Stop()
type ProtobufPowerDNS ¶ added in v0.17.0
func NewProtobufPowerDNS ¶ added in v0.17.0
func (*ProtobufPowerDNS) Channel ¶ added in v0.17.0
func (c *ProtobufPowerDNS) Channel() chan dnsutils.DNSMessage
func (*ProtobufPowerDNS) GetName ¶ added in v0.22.0
func (c *ProtobufPowerDNS) GetName() string
func (*ProtobufPowerDNS) HandleConn ¶ added in v0.17.0
func (c *ProtobufPowerDNS) HandleConn(conn net.Conn)
func (*ProtobufPowerDNS) Listen ¶ added in v0.17.0
func (c *ProtobufPowerDNS) Listen() error
func (*ProtobufPowerDNS) LogConnError ¶ added in v0.33.0
func (c *ProtobufPowerDNS) LogConnError(connID int, msg string, v ...interface{})
func (*ProtobufPowerDNS) LogConnInfo ¶ added in v0.33.0
func (c *ProtobufPowerDNS) LogConnInfo(connID int, msg string, v ...interface{})
func (*ProtobufPowerDNS) LogError ¶ added in v0.17.0
func (c *ProtobufPowerDNS) LogError(msg string, v ...interface{})
func (*ProtobufPowerDNS) LogInfo ¶ added in v0.17.0
func (c *ProtobufPowerDNS) LogInfo(msg string, v ...interface{})
func (*ProtobufPowerDNS) Loggers ¶ added in v0.17.0
func (c *ProtobufPowerDNS) Loggers() ([]chan dnsutils.DNSMessage, []string)
func (*ProtobufPowerDNS) MonitorCollector ¶ added in v0.33.0
func (c *ProtobufPowerDNS) MonitorCollector()
func (*ProtobufPowerDNS) ReadConfig ¶ added in v0.17.0
func (c *ProtobufPowerDNS) ReadConfig()
func (*ProtobufPowerDNS) ReloadConfig ¶ added in v0.38.0
func (c *ProtobufPowerDNS) ReloadConfig(config *pkgconfig.Config)
func (*ProtobufPowerDNS) Run ¶ added in v0.17.0
func (c *ProtobufPowerDNS) Run()
func (*ProtobufPowerDNS) SetLoggers ¶ added in v0.22.0
func (c *ProtobufPowerDNS) SetLoggers(loggers []dnsutils.Worker)
func (*ProtobufPowerDNS) Stop ¶ added in v0.17.0
func (c *ProtobufPowerDNS) Stop()
type TZSPSniffer ¶ added in v0.39.0
type TZSPSniffer struct {
// contains filtered or unexported fields
}
func (*TZSPSniffer) Channel ¶ added in v0.39.0
func (c *TZSPSniffer) Channel() chan dnsutils.DNSMessage
func (*TZSPSniffer) GetName ¶ added in v0.39.0
func (c *TZSPSniffer) GetName() string
func (*TZSPSniffer) Listen ¶ added in v0.39.0
func (c *TZSPSniffer) Listen() error
func (*TZSPSniffer) LogError ¶ added in v0.39.0
func (c *TZSPSniffer) LogError(msg string, v ...interface{})
func (*TZSPSniffer) LogInfo ¶ added in v0.39.0
func (c *TZSPSniffer) LogInfo(msg string, v ...interface{})
func (*TZSPSniffer) Loggers ¶ added in v0.39.0
func (c *TZSPSniffer) Loggers() ([]chan dnsutils.DNSMessage, []string)
func (*TZSPSniffer) ReadConfig ¶ added in v0.39.0
func (c *TZSPSniffer) ReadConfig()
func (*TZSPSniffer) ReloadConfig ¶ added in v0.39.0
func (c *TZSPSniffer) ReloadConfig(config *pkgconfig.Config)
func (*TZSPSniffer) Run ¶ added in v0.39.0
func (c *TZSPSniffer) Run()
func (*TZSPSniffer) SetLoggers ¶ added in v0.39.0
func (c *TZSPSniffer) SetLoggers(loggers []dnsutils.Worker)
func (*TZSPSniffer) Stop ¶ added in v0.39.0
func (c *TZSPSniffer) Stop()
type Tail ¶ added in v0.5.0
type Tail struct {
// contains filtered or unexported fields
}
func (*Tail) Channel ¶ added in v0.5.0
func (c *Tail) Channel() chan dnsutils.DNSMessage
func (*Tail) Loggers ¶ added in v0.5.0
func (c *Tail) Loggers() []chan dnsutils.DNSMessage
func (*Tail) ReadConfig ¶ added in v0.5.0
func (c *Tail) ReadConfig()
func (*Tail) ReloadConfig ¶ added in v0.38.0
func (*Tail) SetLoggers ¶ added in v0.22.0
type XDPSniffer ¶ added in v0.39.0
type XDPSniffer struct {
// contains filtered or unexported fields
}
func NewXDPSniffer ¶ added in v0.39.0
func (*XDPSniffer) Channel ¶ added in v0.39.0
func (c *XDPSniffer) Channel() chan dnsutils.DNSMessage
func (*XDPSniffer) GetName ¶ added in v0.39.0
func (c *XDPSniffer) GetName() string
func (*XDPSniffer) LogError ¶ added in v0.39.0
func (c *XDPSniffer) LogError(msg string, v ...interface{})
func (*XDPSniffer) LogInfo ¶ added in v0.39.0
func (c *XDPSniffer) LogInfo(msg string, v ...interface{})
func (*XDPSniffer) Loggers ¶ added in v0.39.0
func (c *XDPSniffer) Loggers() ([]chan dnsutils.DNSMessage, []string)
func (*XDPSniffer) ReadConfig ¶ added in v0.39.0
func (c *XDPSniffer) ReadConfig()
func (*XDPSniffer) ReloadConfig ¶ added in v0.39.0
func (c *XDPSniffer) ReloadConfig(config *pkgconfig.Config)
func (*XDPSniffer) Run ¶ added in v0.39.0
func (c *XDPSniffer) Run()
func (*XDPSniffer) SetLoggers ¶ added in v0.39.0
func (c *XDPSniffer) SetLoggers(loggers []dnsutils.Worker)
func (*XDPSniffer) Stop ¶ added in v0.39.0
func (c *XDPSniffer) Stop()
Click to show internal directories.
Click to hide internal directories.