Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed Aug 12, 2024
1 parent 4d6e0fd commit 08c553c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
21 changes: 14 additions & 7 deletions pb/flow.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pb/flow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ message FlowMessage {
GRE = 9;
IPv6HeaderRouting = 10;
IPv6HeaderFragment = 11;
Geneve = 12;
Teredo = 13;
Custom = 99;
// todo: add nsh
}
Expand Down
4 changes: 4 additions & 0 deletions producer/proto/producer_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ func ParseGRE(flowMessage *ProtoProducerMessage, data []byte, pc ParseConfig) (r
}

func ParseTeredoDst(flowMessage *ProtoProducerMessage, data []byte, pc ParseConfig) (res ParseResult, err error) {
flowMessage.AddLayer("Teredo")

// get next parser
res.NextParser = parserIPv6

Expand All @@ -756,6 +758,8 @@ func ParseGeneve(flowMessage *ProtoProducerMessage, data []byte, pc ParseConfig)

res.Size = int(data[0]&0x3f)*4 + 8

flowMessage.AddLayer("Geneve")

eType := data[2:4]

// get next parser
Expand Down

0 comments on commit 08c553c

Please sign in to comment.