Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNames ¶ added in v0.2.0
func ExtractNames(ctx context.Context, pkt gopacket.Packet, repo interfaces.Repository)
ExtractNames parses protocol-specific information from a packet and saves name resolution data (IP→name, MAC→name) to the repository.
func GetEthernetMACs ¶ added in v0.2.0
func GetEthernetMACs(pkt gopacket.Packet) (srcMAC, dstMAC net.HardwareAddr)
GetEthernetMACs extracts source and destination MAC addresses from the Ethernet layer.
Types ¶
type DNSTracker ¶ added in v0.3.0
type DNSTracker struct {
// contains filtered or unexported fields
}
func NewDNSTracker ¶ added in v0.3.0
func NewDNSTracker() *DNSTracker
func (*DNSTracker) Expire ¶ added in v0.3.0
func (t *DNSTracker) Expire(now time.Time) []*model.DNSLog
func (*DNSTracker) Flush ¶ added in v0.3.0
func (t *DNSTracker) Flush() []*model.DNSLog
func (*DNSTracker) PendingCount ¶ added in v0.3.0
func (t *DNSTracker) PendingCount() int
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) InputPacket ¶
type FlowMap ¶
type FlowMap struct {
// contains filtered or unexported fields
}
func NewFlowMap ¶
func NewFlowMap() *FlowMap
type Option ¶
type Option func(*Engine)
func WithRepository ¶ added in v0.2.0
func WithRepository(repo interfaces.Repository) Option
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.