projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dhcpv6-ia: fix dereference after freeing assignment
[project/odhcpd.git]
/
src
/
odhcpd.h
diff --git
a/src/odhcpd.h
b/src/odhcpd.h
index
fd43dfe
..
0e5868c
100644
(file)
--- a/
src/odhcpd.h
+++ b/
src/odhcpd.h
@@
-44,6
+44,8
@@
#define RELAYD_BUFFER_SIZE 8192
#define RELAYD_MAX_PREFIXES 8
#define RELAYD_BUFFER_SIZE 8192
#define RELAYD_MAX_PREFIXES 8
+#define INFINITE_VALID(x) ((x) == 0)
+
#define _unused __attribute__((unused))
#define _packed __attribute__((packed))
#define _unused __attribute__((unused))
#define _packed __attribute__((packed))
@@
-82,6
+84,11
@@
enum odhcpd_mode {
};
};
+enum odhcpd_assignment_flags {
+ OAF_BOUND = (1 << 0),
+ OAF_STATIC = (1 << 1),
+};
+
struct config {
bool legacy;
char *dhcp_cb;
struct config {
bool legacy;
char *dhcp_cb;
@@
-96,6
+103,7
@@
struct lease {
struct ether_addr mac;
uint16_t duid_len;
uint8_t *duid;
struct ether_addr mac;
uint16_t duid_len;
uint8_t *duid;
+ uint32_t dhcpv4_leasetime;
char hostname[];
};
char hostname[];
};