Skip to content

Commit bc67876

Browse files
committed
Merge branch 'tcp2' into 'master'
Refaktorizace vstupního TCP pluginu a podpora LZ4 See merge request monitoring/ipfixcol2!12
2 parents 73272cc + 87996f7 commit bc67876

33 files changed

+2580
-1514
lines changed

src/plugins/input/tcp/CMakeLists.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# Create a linkable module
22
add_library(tcp-input MODULE
3-
tcp.c
4-
config.c
5-
config.h
3+
src/IpAddress.cpp
4+
src/Config.cpp
5+
src/ByteVector.cpp
6+
src/DecodeBuffer.cpp
7+
src/Connection.cpp
8+
src/Epoll.cpp
9+
src/ClientManager.cpp
10+
src/IpfixDecoder.cpp
11+
src/Lz4Decoder.cpp
12+
src/DecoderFactory.cpp
13+
src/Acceptor.cpp
14+
src/Plugin.cpp
15+
src/IpxPlugin.cpp
616
)
717

818
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_HOST_SYSTEM_NAME STREQUAL "OpenBSD")

src/plugins/input/tcp/README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Unlike UDP, TCP is reliable transport protocol that allows exporters to detect c
99
disconnection of the collector. Therefore, the issues with templates retransmission and
1010
initial period of inability to interpret flow records does not apply here.
1111

12+
Received IPFIX messages may be compressed using LZ4 stream compression. The compression is
13+
enabled on the exporter and the plugin detects it automatically.
14+
1215
Example configuration
1316
---------------------
1417

@@ -35,3 +38,8 @@ Mandatory parameters:
3538
is left empty, the plugin binds to all available network interfaces. The element can occur
3639
multiple times (one IP address per occurrence) to manually select multiple interfaces.
3740
[default: empty]
41+
42+
Notes
43+
-----
44+
The LZ4 compression uses special format that compatible with
45+
`ipfixproble <https://github.com/CESNET/ipfixprobe>`.

src/plugins/input/tcp/config.c

Lines changed: 0 additions & 213 deletions
This file was deleted.

src/plugins/input/tcp/config.h

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)