diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-21 16:27:17 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-21 16:27:17 +0100 |
commit | df023adafeee1bf48fa1e0cce31e7130f8043dae (patch) | |
tree | c3c99a5ec23ce0faa4ab86e5229d53b595725daf /src/odhcpd.h | |
parent | c8ac572154981ca833dad92d7ee7aa62b88087cc (diff) |
treewide: use RELAYD_MAX_ADDRS as address array size
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r-- | src/odhcpd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h index 0e5868c..cbeaaf8 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -43,6 +43,7 @@ #define RELAYD_BUFFER_SIZE 8192 #define RELAYD_MAX_PREFIXES 8 +#define RELAYD_MAX_ADDRS 8 #define INFINITE_VALID(x) ((x) == 0) @@ -118,7 +119,7 @@ struct interface { // Runtime data struct uloop_timeout timer_rs; struct list_head ia_assignments; - struct odhcpd_ipaddr ia_addr[8]; + struct odhcpd_ipaddr ia_addr[RELAYD_MAX_ADDRS]; size_t ia_addr_len; bool ia_reconf; |