Fix incorrect size check in NFGenMsg (#287)
Fix incorrect size check in NFGenMsg, resolving TableFamily issue for rules in monitor
This commit is contained in:
parent
c96bb6363f
commit
eb34035740
|
@ -156,6 +156,9 @@ func TestMonitor(t *testing.T) {
|
|||
*gotChain.Hooknum != *postrouting.Hooknum {
|
||||
t.Fatal("no want chain", gotChain.Type, gotChain.Name, gotChain.Hooknum)
|
||||
}
|
||||
if gotRule.Table.Family != nat.Family {
|
||||
t.Fatal("rule wrong family", gotRule.Table.Family, gotRule.Table.Name)
|
||||
}
|
||||
if len(gotRule.Exprs) != len(rule.Exprs) {
|
||||
t.Fatal("no want rule")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue