mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 07:59:49 +00:00
1.1 KiB
1.1 KiB
How to use?
You need to first compile the nDPI library as usual:
- ./autogen.sh
- ./configure
- make
Then open the Xcode project and you are ready to go. The default behavior is to analyze an embeded pcap file capture.pcap. You can change the behavior by changing command line input in ViewController.m file.
What does the XCode project do?
It's a dummy Mac App project with a Run button. It doesn't modify any nDPI code except that it renamed the main function to orginal_main in ndpiReader.c (because the Mac App has it's own main function) and call the orginal_main with synthetic command line input from ViewController.m file when the Run button is clicked.
It also fixes some problems when compiling with Xcode. Some are listed below:
- Add missed
NDPI_LOG_DEBUG2macro definition implementation (defined asNDPI_LOG_DEBUG2_XCODE_PROJinViewController.m) - Add an empty ndpi_utils.h file to make
protocols/attic/ftp.candprotocols/attic/secondlife.ccan compile - Specially treat
ndpi_patricia.cby not adding it into compilation source, since it's directly included inndpi_main.c