netlink: add support for getting interface linklocal
[project/odhcpd.git] / src / odhcpd.h
index d829033840552c1db5537733f1c520217d767ea3..420d2a7dd78f0310adce5d311c3539276e745eba 100644 (file)
@@ -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);