X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=src%2Fodhcpd.h;h=420d2a7dd78f0310adce5d311c3539276e745eba;hb=a84bff2625670ab5d107d72d565bed678b02e691;hp=d829033840552c1db5537733f1c520217d767ea3;hpb=dfab0fad85c8b705c483343c99907c229413f7b2;p=project%2Fodhcpd.git diff --git a/src/odhcpd.h b/src/odhcpd.h index d829033..420d2a7 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -131,6 +131,7 @@ struct odhcpd_ipaddr { struct { uint8_t dprefix; uint8_t invalid_advertisements; + bool tentative; }; /* ipv4 only */ @@ -300,6 +301,7 @@ struct interface { bool ra_useleasetime; bool ra_dns; bool no_dynamic_dhcp; + bool have_link_local; uint8_t pio_filter_length; struct in6_addr pio_filter_addr; int default_router; @@ -446,6 +448,7 @@ void dhcpv6_ia_write_statefile(void); int netlink_add_netevent_handler(struct netevent_handler *hdlr); ssize_t netlink_get_interface_addrs(const int ifindex, bool v6, struct odhcpd_ipaddr **addrs); +ssize_t netlink_get_interface_linklocal(int ifindex, struct odhcpd_ipaddr **addrs); int netlink_get_interface_proxy_neigh(int ifindex, const struct in6_addr *addr); int netlink_setup_route(const struct in6_addr *addr, const int prefixlen, const int ifindex, const struct in6_addr *gw, @@ -473,5 +476,6 @@ void dhcpv4_handle_msg(void *addr, void *data, size_t len, int router_setup_interface(struct interface *iface, bool enable); int dhcpv6_setup_interface(struct interface *iface, bool enable); int ndp_setup_interface(struct interface *iface, bool enable); +void reload_services(struct interface *iface); void odhcpd_reload(void);