expr: Add Hash to the expr type

Add the Hash type to the expr read parser.

Signed-off-by: Rafael Campos <methril@gmail.com>
This commit is contained in:
Rafael Campos 2023-06-14 09:55:03 +02:00 committed by Michael Stapelberg
parent 45645ffbf5
commit 98de8c8ac9
1 changed files with 2 additions and 0 deletions

View File

@ -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