projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: use RELAYD_MAX_ADDRS as address array size
[project/odhcpd.git]
/
src
/
odhcpd.h
diff --git
a/src/odhcpd.h
b/src/odhcpd.h
index
0e5868c
..
cbeaaf8
100644
(file)
--- a/
src/odhcpd.h
+++ b/
src/odhcpd.h
@@
-43,6
+43,7
@@
#define RELAYD_BUFFER_SIZE 8192
#define RELAYD_MAX_PREFIXES 8
#define RELAYD_BUFFER_SIZE 8192
#define RELAYD_MAX_PREFIXES 8
+#define RELAYD_MAX_ADDRS 8
#define INFINITE_VALID(x) ((x) == 0)
#define INFINITE_VALID(x) ((x) == 0)
@@
-118,7
+119,7
@@
struct interface {
// Runtime data
struct uloop_timeout timer_rs;
struct list_head ia_assignments;
// 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;
size_t ia_addr_len;
bool ia_reconf;