aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-26 18:17:11 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-26 18:17:11 +0200
commitcec61ed81c32603e316adc468e243b7ed15cde01 (patch)
tree45f4b1adea7e4ceece56a0ea4d35c7d4f5582471 /example/reader_util.c
parent87ad2b58dc4f9355ba6c3a728b8aedb0a0c86516 (diff)
Check for common ALPNs and set a flow risk if not known.add/tls-check-common-alpn
* Increased risk bitmask to 64bit (instead of 32bit). * Removed annoying "Unknown datalink" error message for fuzzers. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index b95168e8d..af58d8db5 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1773,9 +1773,15 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
break;
default:
- /* We shoudn't be here, because we already checked that this datalink is supported.
- Should ndpi_is_datalink_supported() be updated? */
+#ifndef BUILD_FUZZTARGETS
+ /*
+ * We shoudn't be here, because we already checked that this datalink is supported.
+ * Should ndpi_is_datalink_supported() be updated?
+ *
+ * NOTE (toni): We get here quite often during fuzzing and it spams consoles and logfiles. ;)
+ */
printf("Unknown datalink %d\n", datalink_type);
+#endif
return(nproto);
}