enable redir and nat decoders (#73)

Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
This commit is contained in:
Serguei Bezverkhi 2019-11-08 03:17:41 -05:00 committed by Michael Stapelberg
parent e0f4f3f8f8
commit 26aec69f06
1 changed files with 4 additions and 0 deletions

View File

@ -192,6 +192,10 @@ func exprsFromMsg(b []byte) ([]expr.Any, error) {
e = &expr.Immediate{} e = &expr.Immediate{}
case "bitwise": case "bitwise":
e = &expr.Bitwise{} e = &expr.Bitwise{}
case "redir":
e = &expr.Redir{}
case "nat":
e = &expr.NAT{}
} }
if e == nil { if e == nil {
// TODO: introduce an opaque expression type so that users know // TODO: introduce an opaque expression type so that users know