summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 19:07:18 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 19:07:18 +0200
commit2e14d72936d1ccfb6faed4a20dec7072fb6d8232 (patch)
treec6ec7a1f2ae700de353bef72f487144297f668b3 /src/fastd.h
parente59ff6e444e1504e798a76aea5d25e152587da0b (diff)
downloadfastd-2e14d72936d1ccfb6faed4a20dec7072fb6d8232.tar
fastd-2e14d72936d1ccfb6faed4a20dec7072fb6d8232.zip
Make eth_addrs a vector
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fastd.h b/src/fastd.h
index c2b85de..b7f3532 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -31,6 +31,7 @@
#include "buffer.h"
#include "log.h"
#include "shell.h"
+#include "vector.h"
#include <errno.h>
#include <stdarg.h>
@@ -261,9 +262,7 @@ struct fastd_context {
fastd_stats_t tx_dropped;
fastd_stats_t tx_error;
- size_t eth_addr_size;
- size_t n_eth_addr;
- fastd_peer_eth_addr_t *eth_addr;
+ VECTOR(fastd_peer_eth_addr_t) eth_addrs;
unsigned int randseed;