mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
dhcpv6_client: use event_timeout instead of xtimer
This commit is contained in:
parent
ed9a682e49
commit
805952c5ce
@ -99,8 +99,8 @@ endif
|
||||
|
||||
ifneq (,$(filter dhcpv6_client,$(USEMODULE)))
|
||||
USEMODULE += event
|
||||
USEMODULE += event_timeout
|
||||
USEMODULE += random
|
||||
USEMODULE += xtimer
|
||||
ifneq (,$(filter sock_dns,$(USEMODULE)))
|
||||
USEMODULE += dhcpv6_client_dns
|
||||
endif
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "event.h"
|
||||
#include "event/timeout.h"
|
||||
#include "log.h"
|
||||
#include "kernel_defines.h"
|
||||
#include "net/dhcpv6/client.h"
|
||||
@ -72,7 +73,7 @@ static uint8_t best_adv[DHCPV6_CLIENT_BUFLEN];
|
||||
static uint8_t duid[DHCPV6_CLIENT_DUID_LEN];
|
||||
static pfx_lease_t pfx_leases[CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX];
|
||||
static server_t server;
|
||||
static xtimer_t timer, rebind_timer;
|
||||
static event_timeout_t solicit_renew_timeout, rebind_timeout;
|
||||
static event_queue_t *event_queue;
|
||||
static sock_udp_t sock;
|
||||
static sock_udp_ep_t local = { .family = AF_INET6, .port = DHCPV6_CLIENT_PORT };
|
||||
|
Loading…
Reference in New Issue
Block a user