Skip to content

Commit

Permalink
Added comments to the python remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Neb committed Jan 16, 2025
1 parent 1cacdf9 commit 9855c3d
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 59 deletions.
1 change: 1 addition & 0 deletions examples/minimal/wirego_minimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (WiregoMinimalExample) GetDetectionHeuristicsParents() []string {
return []string{"udp", "http"}
}

// DetectionHeuristic applies an heuristic to identify the protocol.
func (WiregoMinimalExample) DetectionHeuristic(packetNumber int, src string, dst string, layer string, packet []byte) bool {
//All packets starting with 0x00 should be passed to our dissector (super advanced heuristic)
if len(packet) != 0 && packet[0] == 0x00 {
Expand Down
Loading

0 comments on commit 9855c3d

Please sign in to comment.