Documentation ¶
Overview ¶
Package dnsflow collects eBPF-network dnsflow metrics
Index ¶
Constants ¶
View Source
const (
DNSTIMEOUT = time.Second * 6
)
Variables ¶
This section is empty.
Functions ¶
func NewTPacketDNS ¶
func SetK8sNetInfo ¶
func SetK8sNetInfo(n *k8sinfo.K8sNetInfo)
Types ¶
type DNSAnswerRecord ¶
func NewDNSRecord ¶
func NewDNSRecord() *DNSAnswerRecord
func (*DNSAnswerRecord) Cleanup ¶
func (c *DNSAnswerRecord) Cleanup()
func (*DNSAnswerRecord) LookupAddr ¶
func (c *DNSAnswerRecord) LookupAddr(ip string) string
type DNSFlowTracer ¶
type DNSFlowTracer struct {
// contains filtered or unexported fields
}
func NewDNSFlowTracer ¶
func NewDNSFlowTracer() *DNSFlowTracer
type DNSPacketInfo ¶
type DNSPacketInfo struct { Key DNSQAKey QR bool // query(false) response(true) RCODE uint8 TS time.Time Answers []layers.DNSResourceRecord }
func ReadPacketInfoFromDNSParser ¶
func ReadPacketInfoFromDNSParser(ts time.Time, dnsParser *DNSParser) (*DNSPacketInfo, error)
type DNSParser ¶
type DNSParser struct { *gopacket.DecodingLayerParser // contains filtered or unexported fields }
func NewDNSParse ¶
func NewDNSParse() DNSParser
Click to show internal directories.
Click to hide internal directories.