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 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.