Skip to content

Commit

Permalink
Dirtied up the code with KBK annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
TnekRex committed May 10, 2024
1 parent 9a62781 commit 8cef9b4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions analyzer/protobuf.spicy
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ public type Packet = unit {
on %done {
# Feed into Zeek's next-layer packet analysis.

# KBK - Comment out so we can build
# KBK HERE - Comment out so we can build
#zeek::forward_packet(self.payload);
}
};

# message := (tag value)*
# A message is encoded as a sequence of zero or more pairs of tags and values.

#
# KBK - This should parse a sequence of zero or more TagAndValue pairs until end-of-data.
#
type Message = unit {
message: TagAndValue[] &eod;
message: TagAndValue[] &eod; # <==== KBK HERE
};

type TagAndValue = unit {
type TagAndValue = unit { # <==== KBK HERE
tag: Tag;
value: Value;
};
Expand Down

0 comments on commit 8cef9b4

Please sign in to comment.