Chore: embed the RuleExtra into Base

This commit is contained in:
yaling888
2022-03-13 01:21:23 +08:00
parent 8fbf93ccc8
commit 46b9a1092d
47 changed files with 1995 additions and 471 deletions

View File

@ -12,6 +12,7 @@ const (
SrcPort
DstPort
Process
ProcessPath
MATCH
)
@ -39,6 +40,8 @@ func (rt RuleType) String() string {
return "DstPort"
case Process:
return "Process"
case ProcessPath:
return "ProcessPath"
case MATCH:
return "Match"
default:
@ -53,4 +56,6 @@ type Rule interface {
Payload() string
ShouldResolveIP() bool
RuleExtra() *RuleExtra
SetRuleExtra(re *RuleExtra)
ShouldFindProcess() bool
}