Comment cleanup.

This commit is contained in:
Kevin Krakauer
2020-01-08 11:20:48 -08:00
parent 2f02e15e54
commit 446a250996
3 changed files with 5 additions and 5 deletions
+2
View File
@@ -42,6 +42,8 @@ const (
NF_RETURN = -NF_REPEAT - 1
)
// VerdictStrings maps int verdicts to the strings they represent. It is used
// for debugging.
var VerdictStrings = map[int32]string{
-NF_DROP - 1: "DROP",
-NF_ACCEPT - 1: "ACCEPT",
-2
View File
@@ -376,8 +376,6 @@ func SetEntries(stack *stack.Stack, optVal []byte) *syserr.Error {
Size: replace.Size,
})
ipt.Tables[replace.Name.String()] = table
// TODO: Do we need to worry about locking? We could write rules while
// packets traverse tables.
stack.SetIPTables(ipt)
return nil
+3 -3
View File
@@ -113,11 +113,11 @@ type Table struct {
// Rules holds the rules that make up the table.
Rules []Rule
// BuiltinChains maps builtin chains to their entrypoints.
// BuiltinChains maps builtin chains to their entrypoint rule in Rules.
BuiltinChains map[Hook]int
// Underflows maps builtin chains to their underflow point (i.e. the
// rule to execute if the chain returns without a verdict).
// Underflows maps builtin chains to their underflow rule in Rules
// (i.e. the rule to execute if the chain returns without a verdict).
Underflows map[Hook]int
// UserChains holds user-defined chains for the keyed by name. Users