Down to where it is clearer why it is needed (there's a circular dependency
between dhcpv4_fr_delay_timer() and dhcpv4_fr_rand_delay()).
Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/odhcpd/pull/264
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
DHCPV4_MIN_PACKET_SIZE : (uint8_t *)end - (uint8_t *)start)
#define MAX_PREFIX_LEN 28
-static void dhcpv4_fr_rand_delay(struct dhcp_assignment *a);
-
static uint32_t serial = 0;
struct odhcpd_ref_ip {
dhcpv4_fr_send(a);
}
+static void dhcpv4_fr_rand_delay(struct dhcp_assignment *a);
+
static void dhcpv4_fr_delay_timer(struct uloop_timeout *event)
{
struct dhcp_assignment *a = container_of(event, struct dhcp_assignment, fr_timer);