mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 14:26:57 +01:00
improvements to config parsing
This commit is contained in:
1 parent
ed8ae57fee
commit
04e80f0dcf
6 files changed
+58
-7
No files matched your search
+3
-1
@@ -32,7 +32,9 @@ type Table struct {
|
||||
protos [256]*protoIndex
|
||||
}
|
||||
|
||||
// protoIndex holds the rules that can apply to one protocol, in a set for each kind of packet.
|
||||
// protoIndex holds the rules that can apply to one protocol, in a set for each kind of packet. Rule ids are
|
||||
// indexes into the direction's rules, so every set is sized by the direction's rule count, not the protocol's:
|
||||
// byPort costs 64 KB per 8 rules in the direction.
|
||||
type protoIndex struct {
|
||||
// hasPorts reports whether the protocol has ports; see iputil.HasPorts.
|
||||
hasPorts bool
|
||||
|
||||
Reference in new issue
Block a user