Using only specific layers - mushorg/go-dpi GitHub Wiki

By default, go-dpi uses all three available layers of detection:

  • Classifiers written in go
  • Wrappers around nDPI and libprotoident
  • Machine-learning model trained on other dumps

Each layer is used on a flow if the previous ones failed to classify it. The list and order of layers that will be used is defined in godpi.go in the variable moduleList. You can change it using godpi.SetModules or by editing the file by hand. Similarly, you can add new layers for use.