summaryrefslogtreecommitdiff
path: root/nDPId-test.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-09-30 18:42:10 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-09-30 19:28:49 +0200
commit14f6b87551c1d03837f25755abbc8eb71d958e3e (patch)
tree6b7f1a3e481f61e726486c8d255b14e0d9e83f12 /nDPId-test.c
parent74f71643da536c6798d077dc1d9b13d56a9afc5d (diff)
Added nDPIsrvd-analysed to generate CSV files from analyse events.
* nDPIsrvd.h: iterate over JSON arrays * nDPId: calculate l3 payload packet entropies for analysis Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId-test.c')
-rw-r--r--nDPId-test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nDPId-test.c b/nDPId-test.c
index 9621c9035..7dba33890 100644
--- a/nDPId-test.c
+++ b/nDPId-test.c
@@ -675,7 +675,7 @@ static void * distributor_client_mainloop_thread(void * const arg)
case READ_PEER_DISCONNECT:
del_event(dis_epollfd, mock_testfds[PIPE_TEST_READ]);
pipe_read_finished = 1;
- continue;
+ break;
}
enum nDPIsrvd_parse_return parse_ret = nDPIsrvd_parse_all(mock_sock);
@@ -712,7 +712,6 @@ static void * distributor_client_mainloop_thread(void * const arg)
{
del_event(dis_epollfd, mock_nullfds[PIPE_NULL_READ]);
null_read_finished = 1;
- continue;
}
printf("%.*s", (int)bytes_read, buf);
@@ -730,7 +729,6 @@ static void * distributor_client_mainloop_thread(void * const arg)
{
del_event(dis_epollfd, mock_arpafds[PIPE_ARPA_READ]);
arpa_read_finished = 1;
- continue;
}
/*