about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorEdznux <edznux@gmail.com>2020-09-17 01:29:09 +0200
committerEdznux <edznux@gmail.com>2020-09-17 01:29:09 +0200
commit4561a9590fc9a8c9ef3676b119f04c2e6d0794c0 (patch)
tree2ff1c8ccad70e6dc0ca029caa10b25d63b8d22a8 /include
parentee206da3897fd2d9f72206c3c5ea0e3fab109001 (diff)
downloadafl++-4561a9590fc9a8c9ef3676b119f04c2e6d0794c0.tar.gz
WIP. basic state working: submitting statsd metrics (path, crashes, hangs)
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 1a05f4f4..5fff7feb 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -65,6 +65,8 @@
 #include <dlfcn.h>
 #include <sched.h>
 
+#include <netdb.h>
+
 #include <sys/wait.h>
 #include <sys/time.h>
 #ifndef USEMMAP
@@ -76,6 +78,7 @@
 #include <sys/mman.h>
 #include <sys/ioctl.h>
 #include <sys/file.h>
+#include <sys/types.h>
 
 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
     defined(__NetBSD__) || defined(__DragonFly__)
@@ -951,6 +954,12 @@ void maybe_update_plot_file(afl_state_t *, double, double);
 void show_stats(afl_state_t *);
 void show_init_stats(afl_state_t *);
 
+/* StatsD */
+
+int statsd_init(char *host, int port);
+int send_statsd_metric(afl_state_t *afl);
+void statsd_format_metric(afl_state_t *afl, char *buff, int bufflen);
+
 /* Run */
 
 fsrv_run_result_t fuzz_run_target(afl_state_t *, afl_forkserver_t *fsrv, u32);