DHCPV6_NoPrefixAvail = 6,
};
-typedef int(reply_handler)(enum dhcpv6_msg orig,
+typedef int(reply_handler)(enum dhcpv6_msg orig, const int rc,
const void *opt, const void *end);
// retransmission strategy
bool delay;
uint8_t init_timeo;
uint16_t max_timeo;
+ uint8_t max_rc;
char name[8];
reply_handler *handler_reply;
int(*handler_finish)(void);
};
-
// DHCPv6 Protocol Headers
struct dhcpv6_header {
uint8_t msg_type;
// Entry manipulation
struct odhcp6c_entry* odhcp6c_find_entry(enum odhcp6c_state state, const struct odhcp6c_entry *new);
-void odhcp6c_update_entry(enum odhcp6c_state state, struct odhcp6c_entry *new);
-void odhcp6c_update_entry_safe(enum odhcp6c_state state, struct odhcp6c_entry *new, uint32_t safe);
+bool odhcp6c_update_entry(enum odhcp6c_state state, struct odhcp6c_entry *new);
+bool odhcp6c_update_entry_safe(enum odhcp6c_state state, struct odhcp6c_entry *new, uint32_t safe);
void odhcp6c_expire(void);
uint32_t odhcp6c_elapsed(void);