diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-05-20 14:55:05 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-05-20 14:55:05 +0200 |
commit | 9a1c2d0ea731724edfaca97195c87569e4321681 (patch) | |
tree | d1371082f38a429a2c491ef918ed2a963936bc9a /examples | |
parent | db39772aa7b10ee6fb9e21db8f44c0f5fca7a1d2 (diff) |
Reworked layer 4 flow length naming/calculation.
* nDPIsrvd services usually do not care about layer4 data length,
payload length is quite more essential for further processing
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c-captured/c-captured.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/c-captured/c-captured.c b/examples/c-captured/c-captured.c index 6ffb0296a..1bddd7d52 100644 --- a/examples/c-captured/c-captured.c +++ b/examples/c-captured/c-captured.c @@ -390,8 +390,8 @@ static enum nDPIsrvd_callback_return captured_json_callback(struct nDPIsrvd_sock } nDPIsrvd_ull total_l4_bytes = 0; - perror_ull(TOKEN_VALUE_TO_ULL(TOKEN_GET_SZ(sock, "flow_tot_l4_data_len"), &total_l4_bytes), - "flow_tot_l4_data_len"); + perror_ull(TOKEN_VALUE_TO_ULL(TOKEN_GET_SZ(sock, "flow_tot_l4_payload_len"), &total_l4_bytes), + "flow_tot_l4_payload_len"); if (flow_user->detection_finished != 0 && (total_l4_bytes > 0 || ignore_empty_flows == 0) && |