From ba179cc724f9b1e89ba38649dd9baf051ad1ca25 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 18 Nov 2020 18:06:55 +0100 Subject: Increased serialization buffer size as required for recent nDPI builds. * added .gitignore to prevent SCM check-ins of unwanted files * fixed invalid include path for python examples Signed-off-by: Toni Uhlig --- .gitignore | 6 ++++++ config.h | 2 +- examples/py-flow-info/flow-info.py | 2 +- examples/py-flow-undetected-to-pcap/flow-undetected-to-pcap.py | 2 +- examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..83d073eb9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# python related +*.pyc +__pycache__ + +# go related +*.sum diff --git a/config.h b/config.h index 4ae7e221d..c60780447 100644 --- a/config.h +++ b/config.h @@ -7,7 +7,7 @@ #define DISTRIBUTOR_HOST "127.0.0.1" #define DISTRIBUTOR_PORT 7000 -#define NETWORK_BUFFER_MAX_SIZE 9216 /* 8192 + 1024 */ +#define NETWORK_BUFFER_MAX_SIZE 9728 /* 8192 + 1024 + 512 */ /* nDPId default config options */ #define nDPId_PIDFILE "/tmp/ndpid.pid" diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py index f58bb1db9..81087cc8f 100755 --- a/examples/py-flow-info/flow-info.py +++ b/examples/py-flow-info/flow-info.py @@ -3,7 +3,7 @@ import os import sys -sys.path.append(os.path.dirname(sys.argv[0]) + '/../../contrib') +sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies') import nDPIsrvd from nDPIsrvd import nDPIsrvdSocket, TermColor diff --git a/examples/py-flow-undetected-to-pcap/flow-undetected-to-pcap.py b/examples/py-flow-undetected-to-pcap/flow-undetected-to-pcap.py index fc0737288..899d61e47 100755 --- a/examples/py-flow-undetected-to-pcap/flow-undetected-to-pcap.py +++ b/examples/py-flow-undetected-to-pcap/flow-undetected-to-pcap.py @@ -4,7 +4,7 @@ import base64 import os import sys -sys.path.append(os.path.dirname(sys.argv[0]) + '/../../contrib') +sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies') import nDPIsrvd from nDPIsrvd import TermColor, nDPIsrvdSocket, PcapPacket diff --git a/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py b/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py index a57c37496..aff70a2b8 100755 --- a/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py +++ b/examples/py-risky-flow-to-pcap/risky-flow-to-pcap.py @@ -4,7 +4,7 @@ import base64 import os import sys -sys.path.append(os.path.dirname(sys.argv[0]) + '/../../contrib') +sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies') import nDPIsrvd from nDPIsrvd import TermColor, nDPIsrvdSocket, PcapPacket -- cgit v1.2.3