summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAge
* Switched to CMake build system.Toni Uhlig2021-03-17
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd collectd-exec overhaul.Toni Uhlig2021-03-15
| | | | | | | * Install targets updated. * Removed nDPIsrvd.h token validation function (done automatically by token_get). Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added basic collectd-exec example.Toni Uhlig2021-03-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fixed possible NULL pointer deref in dependencies/nDPIsrvd.h and ↵Toni Uhlig2021-02-28
| | | | | | | | | | examples/c-captured/c-captured.c * `make install` C examples * examples/py-flow-info/flow-info.py supports filtering * added breed to examples/py-flow-info/flow-info.py Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Finalized examples/c-captured to dump packet bytes to PCAP for further analysis.Toni Uhlig2021-02-24
| | | | | | * Fixed memory holes in nDPId structs. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Extended nDPIsrvd.h with address parsing.Toni Uhlig2021-02-23
| | | | | | | | | * nDPId supports looading of custom nDPI protocol/category files * extended JSON schemas according to nDPI / nDPId JSON serializing * removed memory holes in nDPId * extended examples/c-captured Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd C API overhaul and massive simplification.Toni Uhlig2021-02-06
| | | | | | | | * nDPIsrvd.h does flow mgmt out of the box * dissect received JSON strings via callback * added new JSON key/values for packet-flows (usecTimestamp/L3/L4 info) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Increased JSON buffer size to 12288 (libnDPI serializes more and more ↵Toni Uhlig2021-01-27
| | | | | | | | | | | information). * Making Compare&Fetch mandatory. * Added some more Compare&Fetch to prevent TSAN complaining about data races. Fixed possible but more ore less harmless data races during shutdown process. * Shrink SIGNAL handler to a minimum. SYSV Signal handling and MT-safety is awkward. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Improved testing capabilities via Makefile.Toni Uhlig2020-12-15
| | | | | | * increased nDPId_MAX_READER_THREADS to 32 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Generic nDPIsrvd.h event handling integration and flow tracking with uthash.Toni Uhlig2020-12-06
| | | | | | * aims to be re-usable for many different apps and use-cases Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Removed all LUA leftover as preparation for UTHASH.Toni Uhlig2020-12-01
| | | | | | * Added UNIX socket support for nDPIsrvd.h (and c-captured) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Set rpath when compiling with use of pkg-config.Toni Uhlig2020-12-01
| | | | | | * New Makefile target: mocksrvd, fake nDPIsrvd instamce Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Let travis use pcap files from nDPI to produce some JSON output. (disabled, ↵Toni Uhlig2020-12-01
| | | | | | | | | | | needs further testing..) * Added pcap diff script * Added \n to JSON string end (useful for debugging and readability) * Use first host/server name character for hash calculation as well * Removed error'ing EPOLLHUP handling in nDPIsrvd (connection closing will be detected via read()) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Refactored Makefile pkg-config part to be able to work with multiple ↵Toni Uhlig2020-11-18
| | | | | | | | | pkg-config based projects. * added lua as new dependency for examples/c-captured * improved `make help' print Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Renamed misleading "contrib" subfolder to "dependencies".Toni Uhlig2020-11-13
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fixed `make help' printout issues.Toni Uhlig2020-11-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Make sure that DAEMON_EVENT_SHUTDOWN gets transmitted before close() (hacky, ↵Toni Uhlig2020-11-08
| | | | | | but works). Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* build go example only if GOCC setToni Uhlig2020-10-17
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Travi CIToni Uhlig2020-10-06
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Removed DISABLE_JSMN define for c-json-stdout (built-in per default).Toni Uhlig2020-09-26
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* go-dashboard: Added event structs and JSON unmarshal semantic.Toni Uhlig2020-09-02
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* go-dashboard: go mod/vendor support + termdash text user interfaceToni Uhlig2020-09-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added golang JSON deserializer example.Toni Uhlig2020-08-31
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Makefile: Allow pkg-config based builds and also allow setting libndpi build ↵Toni Uhlig2020-08-24
| | | | | | options manually. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Makefile: ENABLE_DEBUG disables function inliningToni Uhlig2020-08-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* added utils module to share some code parts with other appsToni Uhlig2020-08-05
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* improved Makefile help targetToni Uhlig2020-08-05
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* json buffering and parsingToni Uhlig2020-08-04
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* added basic "consumer" exampleToni Uhlig2020-08-04
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd: UNIX/INET socket creationToni Uhlig2020-07-19
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved CFLAGS to PROJECT_CFLAGS so OpenWrt won't overwrite itToni Uhlig2020-07-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* removed obsolete DISABLE_JSONIZER modeToni Uhlig2020-07-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* removed obsolete EXTRA_VERBOSE modeToni Uhlig2020-07-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* -fsanitize=enumToni Uhlig2020-07-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* do not omit frame pointer in debug modeToni Uhlig2020-07-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* enable thread snitizerToni Uhlig2020-07-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* send JSON string on a per thread basis to a remote sink, means that no ↵Toni Uhlig2020-07-05
| | | | | | expensive locking required Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* print json string for FLOW_END / FLOW_IDLE as wellToni Uhlig2020-07-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* only printf() flow events #ifdef DISABLE_JSONIZER, print only json string ↵Toni Uhlig2020-07-01
| | | | | | otherwise Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* add configuration variable VERBOSE / EXTRA VERBOSE, print build ↵Toni Uhlig2020-06-30
| | | | | | configuration in Makefile Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* -Wl == CFLAGToni Uhlig2020-06-23
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* xcompile readyToni Uhlig2020-06-22
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* print total packets captured, reduced console spam and added VERBOSE mode to ↵Toni Uhlig2020-06-13
| | | | | | print some l3/l4 metadata, used ull instead of size_t as its size is architecture dependant Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Makefile use -I and -rpath if CUSTOM_LIBNDPI variable usedToni Uhlig2020-06-04
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* initial commitlns2020-06-03