dhcpv6-ia: move function definitions to odhcpd.h
[project/odhcpd.git] / src / dhcpv6.h
index 1ed7d6d128843173489d578ef5ef6374cbdef961..7abc8afb2b6d93b5773b3c58f56ee9be3cff05a4 100644 (file)
@@ -146,21 +146,8 @@ struct dhcpv6_cer_id {
        struct in6_addr addr;
 };
 
-typedef void (*dhcpv6_binding_cb_handler_t)(struct in6_addr *addr, int prefix,
-                                               uint32_t pref, uint32_t valid,
-                                               void *arg);
-
 #define dhcpv6_for_each_option(start, end, otype, olen, odata)\
        for (uint8_t *_o = (uint8_t*)(start); _o + 4 <= (end) &&\
                ((otype) = _o[0] << 8 | _o[1]) && ((odata) = (void*)&_o[4]) &&\
                ((olen) = _o[2] << 8 | _o[3]) + (odata) <= (end); \
                _o += 4 + (_o[2] << 8 | _o[3]))
-
-int dhcpv6_init_ia(struct interface *iface, int socket);
-ssize_t dhcpv6_handle_ia(uint8_t *buf, size_t buflen, struct interface *iface,
-               const struct sockaddr_in6 *addr, const void *data, const uint8_t *end);
-int dhcpv6_ia_init(void);
-int dhcpv6_setup_ia_interface(struct interface *iface, bool enable);
-void dhcpv6_enum_ia_addrs(struct interface *iface, struct dhcp_assignment *c, time_t now,
-                               dhcpv6_binding_cb_handler_t func, void *arg);
-void dhcpv6_write_statefile(void);