X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.h;h=b0a198046df6c48c06115b18d8cf5191af85dc16;hb=82c9edbf4148365f529a9b49013691943eed7aac;hp=aa0bc224169221e12a2300e6db1c69e64cdbc7cf;hpb=4369d2f0e1ab9682d677f2f8fd876329e740fb0b;p=odhcp6c.git diff --git a/src/odhcp6c.h b/src/odhcp6c.h index aa0bc22..b0a1980 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -51,6 +51,7 @@ enum dhcvp6_opt { DHCPV6_OPT_NTP_SERVER = 56, DHCPV6_OPT_SIP_SERVER_D = 21, DHCPV6_OPT_SIP_SERVER_A = 22, + DHCPV6_OPT_AFTR_NAME = 64, DHCPV6_OPT_PD_EXCLUDE = 67, }; @@ -139,7 +140,6 @@ struct dhcpv6_auth_reconfigure { uint8_t algorithm; uint8_t rdm; uint64_t replay; - uint8_t auth; uint8_t reconf_type; uint8_t key[16]; } _packed; @@ -178,6 +178,7 @@ enum odhcp6c_state { STATE_RA_ROUTE, STATE_RA_PREFIX, STATE_RA_DNS, + STATE_AFTR_NAME, _STATE_MAX }; @@ -225,6 +226,7 @@ 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);