about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorEdznux <edznux@gmail.com>2020-10-05 22:21:01 +0200
committerEdznux <edznux@gmail.com>2020-10-05 22:21:01 +0200
commit916b6fd3171bab1b17e576e088f094080ff5f6cf (patch)
tree758d173099c0caf794922124ffc09d2bcc0a4dcb /include
parent2bf3a70e2b5cd0961cb5b1d525f3fd58c4408ba5 (diff)
downloadafl++-916b6fd3171bab1b17e576e088f094080ff5f6cf.tar.gz
Refactor global var into afl_state_t struct
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index d79920bd..7eeeb79b 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -633,8 +633,11 @@ typedef struct afl_state {
   u64 plot_prev_qc, plot_prev_uc, plot_prev_uh, plot_prev_ed;
 
   u64 stats_last_stats_ms, stats_last_plot_ms, stats_last_ms, stats_last_execs;
-  // StatsD
+
+  /* StatsD */
   u64 statsd_last_send_ms;
+  struct sockaddr_in statsd_server;
+  int statsd_sock;
 
   double stats_avg_exec;
 
@@ -958,7 +961,7 @@ void show_init_stats(afl_state_t *);
 
 /* StatsD */
 
-int statsd_socket_init(char *host, int port);
+int statsd_socket_init(afl_state_t *afl);
 int statsd_send_metric(afl_state_t *afl);
 int statsd_format_metric(afl_state_t *afl, char *buff, size_t bufflen);