From bfee1fcfe85f5a7de99df9ac65866650ffc89024 Mon Sep 17 00:00:00 2001 From: Tanner Kvarfordt Date: Wed, 8 May 2024 22:11:04 -0600 Subject: [PATCH] Added WireType enum --- analyzer/protobuf.spicy | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/analyzer/protobuf.spicy b/analyzer/protobuf.spicy index 83e9fdf..bcaef43 100644 --- a/analyzer/protobuf.spicy +++ b/analyzer/protobuf.spicy @@ -1,5 +1,3 @@ -# TODO: Define your analyzer here. - module protobuf; import zeek; @@ -17,3 +15,12 @@ public type Packet = unit { zeek::forward_packet(self.protocol); } }; + +type WireType = enum { + VARINT = 0x00, + I64 = 0x01, + LEN = 0x02, + SGROUP = 0x03, # deprecated + EGROUP = 0x04, # deprecated + I32 = 0x05 +};