diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2024-06-25 12:16:09 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-06-25 16:39:45 +0200 |
commit | 556f892a56d57e1afadb91fd5a12078cb3e2e5dc (patch) | |
tree | 20300d0fc76394bc9dd3a4d6b0d472751c9fb3a5 /fuzz/fuzz_ndpi_reader.c | |
parent | f44832cc51400f7ede9343cb1847f4c242c5ddc9 (diff) |
wireshark: lua: export some metadata
Export some metadata (for the moment, SNI and TLS fingerprints) to
Wireshark/tshark via extcap.
Note that:
* metadata are exported only once per flow
* metadata are exported (all together) when nDPI stopped processing
the flow
Still room for a lot of improvements!
In particular:
* we need to add some boundary checks (if we are going to export other
attributes)
* we should try to have a variable length trailer
Diffstat (limited to 'fuzz/fuzz_ndpi_reader.c')
-rw-r--r-- | fuzz/fuzz_ndpi_reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzz/fuzz_ndpi_reader.c b/fuzz/fuzz_ndpi_reader.c index 80ed16886..41e7be063 100644 --- a/fuzz/fuzz_ndpi_reader.c +++ b/fuzz/fuzz_ndpi_reader.c @@ -126,9 +126,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if(packet_checked) { ndpi_risk flow_risk; + struct ndpi_flow_info *flow = NULL; /* unused */ memcpy(packet_checked, pkt, header->caplen); - ndpi_workflow_process_packet(workflow, header, packet_checked, &flow_risk); + ndpi_workflow_process_packet(workflow, header, packet_checked, &flow_risk, &flow); free(packet_checked); } |