ntop / nDPI

Open Source Deep Packet Inspection Software Toolkit
http://www.ntop.org
GNU Lesser General Public License v3.0
3.86k stars 899 forks source link

hardcoding values to ndpi_reader #1089

Closed Tomasz158 closed 3 years ago

Tomasz158 commented 3 years ago

How can I 'hardcode' values like interface or verbose level to ndpi_reader, so to avoid parseOptions?

pengtianabc commented 3 years ago

TwoWay:

  1. You can check by argc from main, if argc is 1, update argv to your custom options string
  2. Just change the default value of each variables.
Tomasz158 commented 3 years ago

I managed to resolve fhe second way, thanks.