X-Git-Url: http://git.openwrt.org/?p=project%2Fodhcp6c.git;a=blobdiff_plain;f=src%2Fodhcp6c.h;h=e55d3c1a988d2622fbe26fb6b66132b9e9d89ae2;hp=2a10113852481a209d5e039ee041c020afc2f118;hb=419fb6347233506012eecc59f8ae6a531a377a8d;hpb=d420f49396c627ce1072b83170889baf0720bc8b diff --git a/src/odhcp6c.h b/src/odhcp6c.h index 2a10113..e55d3c1 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -227,6 +227,7 @@ struct dhcpv6_server_cand { int16_t preference; uint8_t duid_len; uint8_t duid[130]; + struct in6_addr server_addr; uint32_t sol_max_rt; uint32_t inf_max_rt; void *ia_na; @@ -343,6 +344,7 @@ bool odhcp6c_signal_process(void); uint64_t odhcp6c_get_milli_time(void); int odhcp6c_random(void *buf, size_t len); bool odhcp6c_is_bound(void); +bool odhcp6c_addr_in_scope(const struct in6_addr *addr); // State manipulation void odhcp6c_clear_state(enum odhcp6c_state state);