From 98de8c8ac911174bb35d2d7440bd27c7b3278244 Mon Sep 17 00:00:00 2001 From: Rafael Campos Date: Wed, 14 Jun 2023 09:55:03 +0200 Subject: [PATCH] expr: Add Hash to the expr type Add the Hash type to the expr read parser. Signed-off-by: Rafael Campos --- expr/expr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/expr/expr.go b/expr/expr.go index 9a9ea76..c58308b 100644 --- a/expr/expr.go +++ b/expr/expr.go @@ -134,6 +134,8 @@ func exprsFromBytes(fam byte, ad *netlink.AttributeDecoder, b []byte) ([]Any, er e = &Reject{} case "masq": e = &Masq{} + case "hash": + e = &Hash{} } if e == nil { // TODO: introduce an opaque expression type so that users know