ruleparser

package
v0.0.0-...-aaac84e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SFIP_LIST = 0
	SFIP_TABLE
)

Variables

View Source
var Rules map[uint32]interface{}

Functions

func ParseRule

func ParseRule(rule string, prMap map[string]map[int][]RuleOption)

func ParseRuleFile

func ParseRuleFile(filename string) map[string]map[int][]RuleOption

Types

type IPSTOREMODES

type IPSTOREMODES int64

type IpNode

type IpNode struct {
	Ip   *uint32
	Next *IpNode
}

type PortRule

type PortRule map[uint32][]string

type PortRuleMap map[uint32]map[uint32]map[uint32][]PortRule

type RuleOption

type RuleOption struct {
	Content string /* string to be matched */
	Message string /* event message to be logged */
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL