X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.h;h=3e2713ea25bd19e31f272820851939b9d1c8035e;hb=ec864c44e9959a5d65cc564182f4e960e47c6e9e;hp=a4343b19216ec8293388922da74b6eb30da30e3a;hpb=d6fe99f6d03873e7a670c9b6f26fa03b219422f5;p=odhcp6c.git diff --git a/src/odhcp6c.h b/src/odhcp6c.h index a4343b1..3e2713e 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -188,9 +188,6 @@ struct dhcpv6_auth_reconfigure { struct dhcpv6_cer_id { uint16_t type; uint16_t len; - uint16_t reserved; - uint16_t auth_type; - uint8_t auth[16]; struct in6_addr addr; } _packed; @@ -325,11 +322,10 @@ int set_rtnetlink_addr(int ifindex, const struct in6_addr *addr, int script_init(const char *path, const char *ifname); ssize_t script_unhexlify(uint8_t *dst, size_t len, const char *src); void script_call(const char *status); -void script_delay_call(const char *status, int timeout); bool odhcp6c_signal_process(void); uint64_t odhcp6c_get_milli_time(void); -void odhcp6c_random(void *buf, size_t len); +int odhcp6c_random(void *buf, size_t len); bool odhcp6c_is_bound(void); // State manipulation @@ -343,8 +339,7 @@ void* odhcp6c_get_state(enum odhcp6c_state state, size_t *len); // Entry manipulation struct odhcp6c_entry* odhcp6c_find_entry(enum odhcp6c_state state, const struct odhcp6c_entry *new); -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); +bool odhcp6c_update_entry(enum odhcp6c_state state, struct odhcp6c_entry *new, uint32_t safe, bool filterexcess); void odhcp6c_expire(void); uint32_t odhcp6c_elapsed(void);