dhcpv6-ia: use free_dhcpv6_assignment where needed
[project/odhcpd.git] / src / odhcpd.h
index 3e8fc3e..0e5868c 100644 (file)
@@ -44,6 +44,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))
 
@@ -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;