Add expr.Ct and expr.Range type select in exprsFromMsg (#120)

fixes #119
This commit is contained in:
pengyuan.dai 2021-05-11 17:11:10 +08:00 committed by GitHub
parent 715e31cb3c
commit 523112131a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ func exprsFromMsg(b []byte) ([]expr.Any, error) {
case unix.NFTA_EXPR_DATA:
var e expr.Any
switch name {
case "ct":
e = &expr.Ct{}
case "range":
e = &expr.Range{}
case "meta":
e = &expr.Meta{}
case "cmp":