Documentation ¶
Index ¶
- func ApplyBpfFilter(filter []bpf.Instruction, fd int) (err error)
- func GetBpfFilter(port int) []bpf.Instruction
- func Htons(v uint16) int
- func RemoveBpfFilter(fd int) (err error)
- type DnsSniffer
- func (c *DnsSniffer) Channel() chan dnsutils.DnsMessage
- func (c *DnsSniffer) Listen() error
- func (c *DnsSniffer) LogError(msg string, v ...interface{})
- func (c *DnsSniffer) LogInfo(msg string, v ...interface{})
- func (c *DnsSniffer) Loggers() []chan dnsutils.DnsMessage
- func (c *DnsSniffer) ReadConfig()
- func (c *DnsSniffer) Run()
- func (c *DnsSniffer) Stop()
- type Dnstap
- func (c *Dnstap) Channel() chan dnsutils.DnsMessage
- func (c *Dnstap) HandleConn(conn net.Conn)
- func (c *Dnstap) Listen() error
- func (o *Dnstap) LogError(msg string, v ...interface{})
- func (o *Dnstap) LogInfo(msg string, v ...interface{})
- func (c *Dnstap) Loggers() []chan dnsutils.DnsMessage
- func (c *Dnstap) ReadConfig()
- func (c *Dnstap) Run()
- func (c *Dnstap) Stop()
- type Tail
- func (c *Tail) Channel() chan dnsutils.DnsMessage
- func (c *Tail) Follow() error
- func (o *Tail) LogError(msg string, v ...interface{})
- func (o *Tail) LogInfo(msg string, v ...interface{})
- func (c *Tail) Loggers() []chan dnsutils.DnsMessage
- func (c *Tail) ReadConfig()
- func (c *Tail) Run()
- func (c *Tail) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBpfFilter ¶
func ApplyBpfFilter(filter []bpf.Instruction, fd int) (err error)
func GetBpfFilter ¶
func GetBpfFilter(port int) []bpf.Instruction
func RemoveBpfFilter ¶
Types ¶
type DnsSniffer ¶
type DnsSniffer struct {
// contains filtered or unexported fields
}
func NewDnsSniffer ¶
func NewDnsSniffer(loggers []dnsutils.Worker, config *dnsutils.Config, logger *logger.Logger) *DnsSniffer
func (*DnsSniffer) Channel ¶
func (c *DnsSniffer) Channel() chan dnsutils.DnsMessage
func (*DnsSniffer) Listen ¶ added in v0.3.0
func (c *DnsSniffer) Listen() error
func (*DnsSniffer) LogError ¶
func (c *DnsSniffer) LogError(msg string, v ...interface{})
func (*DnsSniffer) LogInfo ¶
func (c *DnsSniffer) LogInfo(msg string, v ...interface{})
func (*DnsSniffer) Loggers ¶ added in v0.3.0
func (c *DnsSniffer) Loggers() []chan dnsutils.DnsMessage
func (*DnsSniffer) ReadConfig ¶
func (c *DnsSniffer) ReadConfig()
func (*DnsSniffer) Run ¶
func (c *DnsSniffer) Run()
func (*DnsSniffer) Stop ¶
func (c *DnsSniffer) Stop()
type Dnstap ¶ added in v0.3.0
type Dnstap struct {
// contains filtered or unexported fields
}
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) Loggers ¶ added in v0.3.0
func (c *Dnstap) Loggers() []chan dnsutils.DnsMessage
func (*Dnstap) ReadConfig ¶ added in v0.3.0
func (c *Dnstap) ReadConfig()
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()
Click to show internal directories.
Click to hide internal directories.