MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / LookupSetName

Method LookupSetName

internal/firewalls/nftables/rule.go:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (this *Rule) LookupSetName() string {
26 for _, e := range this.rawRule.Exprs {
27 exp, ok := e.(*expr.Lookup)
28 if ok {
29 return exp.SetName
30 }
31 }
32 return ""
33}
34
35func (this *Rule) VerDict() expr.VerdictKind {
36 for _, e := range this.rawRule.Exprs {

Callers 1

TestChain_GetRulesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestChain_GetRulesFunction · 0.64