Peafowl is a flexible and extensible DPI framework which can be used to identify the application protocols carried by IP (IPv4 and IPv6) packets and to extract and process data and metadata carried by those protocols. This module allows golang projects to leverage the power of Peafowl for Deep-Packet Inspection of live and recorded network traffic.
make
example/go-peafowl -rf example/pcap/http.pcap
go test -bench=. -benchmem
goos: linux
goarch: amd64
BenchmarkGetProtocol-4 10000000 163 ns/op 32 B/op 1 allocs/op
All wrapped C functions at top of main.go are from M. Campus
Check out node-peafowl by L. Mangani, M. Campus