Skip to content

Commit

Permalink
Added WireType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Kardbord committed May 9, 2024
1 parent 09dae9c commit bfee1fc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions analyzer/protobuf.spicy
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# TODO: Define your analyzer here.

module protobuf;

import zeek;
Expand All @@ -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
};

0 comments on commit bfee1fc

Please sign in to comment.