ntopng/tools/json2tlv
Sam James c4cd135323
build: respect environment options more (#6177)
* build: move away from configure.seed -> configure.ac

Analogous to the change in nDPI [0].

[0] cf931fda6b

Signed-off-by: Sam James <sam@gentoo.org>

* build: use $(MAKE)

This ensures that parallel make works correctly, as otherwise, a fresh
make job will be started without the jobserver fd, and hence
not know about its parent, forcing -j1.

Signed-off-by: Sam James <sam@gentoo.org>

* build: respect CXX, CXXFLAGS, LDFLAGS/LIBS

- Use standard CXX variable for the C++ compiler
- Respect CXXFLAGS from the environment
- LDFLAGS needs to be before objects in order for some flags to work
  like -Wl,--as-needed

Signed-off-by: Sam James <sam@gentoo.org>

* build: add comment for dynamic linking nDPI

It seems to work for me but add a commented
in line for now for convenience, not actually
changing behaviour right now.

(May want to make it a proper configure option
in future.)

Signed-off-by: Sam James <sam@gentoo.org>
2022-01-07 10:16:59 +01:00
..
json2tlv.cpp json2tlv improvements: zmq version check 2019-11-21 10:57:27 +01:00
Makefile.in build: respect environment options more (#6177) 2022-01-07 10:16:59 +01:00
README json2tlv cli fix 2019-08-23 19:38:44 +02:00

JSON to TLV
-----------

json2tlv is a utility for converting a JSON file containing an array of flow records
to the TLV format (implemented in nDPI). This tool is able to serialize and export 
TLV records over ZMQ. This is meant to be used for functional and performance tests.

Example with json2tlv reading a JSON file with flows and generating TLV records in a
loop to a local instance of ntopng:

# json2tlv -i flows.json -z tcp://*:5556c -E 10000

# ntopng -i tcp://127.0.0.1:5556