Versions in this module Expand all Collapse all v0 v0.3.2 Feb 26, 2024 v0.3.1 Jan 6, 2023 Changes in this version + var FilterKinds = []string + func DecapGREandERSPAN(pkt gopacket.Packet, maxdepth int) (gopacket.Packet, error) + func ExtractBaseName(filename string) string + type CombinedConfig struct + Conditions []FilterItem + type CombinedMatcher struct + Conditions []Matcher + func NewCombinedMatcher(c MatcherConfig) (*CombinedMatcher, error) + func (cm CombinedMatcher) Match(pkt gopacket.Packet) bool + type ConditionASN struct + DB *geoip2.Reader + IPParseErrs int + LookupErrs int + Values map[uint]bool + func NewConditionASN(path string, asn []string) (*ConditionASN, error) + func (ca ConditionASN) Match(pkt gopacket.Packet) bool + type ConditionEndpoint map[gopacket.Endpoint]bool + func NewPortMatcher(p []string) (ConditionEndpoint, error) + func (cs ConditionEndpoint) Match(pkt gopacket.Packet) bool + type ConditionSubnet []net.IPNet + func NewConditionalSubnet(nets []string) (ConditionSubnet, error) + func (cs ConditionSubnet) Match(pkt gopacket.Packet) bool + type Config struct + Compress bool + Ctx context.Context + DecapMaxDepth int + Decapsulate bool + Dedup dedup.Dedupper + File struct{ ... } + Filter Matcher + ID int + StatFunc func(map[string]any) + type DummyMatcher struct + func (d DummyMatcher) Match(pkt gopacket.Packet) bool + type ErrEarlyExit struct + func (e ErrEarlyExit) Error() string + type FilterItem struct + Kind string + Match []string + Negate bool + type FilterKind int + const FilterKindASN + const FilterKindPort + const FilterKindRaw + const FilterKindSubnet + const FilterKindUndefined + func NewFilterKind(raw string) FilterKind + func (k FilterKind) String() string + type FilterResult struct + Count int + DecapErrors int + DedupRatio float64 + Deduplicated int + Errors int + Matched int + Rate string + Skipped int + Start time.Time + Took time.Duration + func ReadAndFilter(c *Config) (*FilterResult, error) + func (fr FilterResult) Map() map[string]any + type Matcher interface + Match func(gopacket.Packet) bool + type MatcherConfig struct + MaxMindASN string + type NegateMatcher struct + M Matcher + func (nm NegateMatcher) Match(pkt gopacket.Packet) bool + type Task struct + Description string + Filter Matcher + Input string + Output string + type YAMLConfig map[string]CombinedConfig + func Generate(pth string, parseErrFunc func(error) bool) (YAMLConfig, error)