tests: adapt gnrc_sock_dns for auto-configured DNS
This commit is contained in:
parent
5361c4cfff
commit
95c1992d97
@ -9,6 +9,7 @@ BOARD_INSUFFICIENT_MEMORY := chronos telosb nucleo-f042k6 nucleo-f031k6 \
|
|||||||
USEMODULE += sock_dns
|
USEMODULE += sock_dns
|
||||||
USEMODULE += gnrc_sock_udp
|
USEMODULE += gnrc_sock_udp
|
||||||
USEMODULE += gnrc_ipv6_default
|
USEMODULE += gnrc_ipv6_default
|
||||||
|
USEMODULE += gnrc_ipv6_nib_dns
|
||||||
USEMODULE += gnrc_netdev_default
|
USEMODULE += gnrc_netdev_default
|
||||||
USEMODULE += auto_init_gnrc_netif
|
USEMODULE += auto_init_gnrc_netif
|
||||||
|
|
||||||
|
|||||||
@ -31,10 +31,6 @@
|
|||||||
#define TEST_NAME "example.org"
|
#define TEST_NAME "example.org"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DNS_SERVER
|
|
||||||
#define DNS_SERVER "[2001:db8::1]:53"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* import "ifconfig" shell command, used for printing addresses */
|
/* import "ifconfig" shell command, used for printing addresses */
|
||||||
|
|
||||||
extern int _gnrc_netif_config(int argc, char **argv);
|
extern int _gnrc_netif_config(int argc, char **argv);
|
||||||
@ -43,8 +39,6 @@ int main(void)
|
|||||||
{
|
{
|
||||||
uint8_t addr[16] = {0};
|
uint8_t addr[16] = {0};
|
||||||
|
|
||||||
sock_udp_str2ep(&sock_dns_server, DNS_SERVER);
|
|
||||||
|
|
||||||
puts("waiting for router advertisement...");
|
puts("waiting for router advertisement...");
|
||||||
xtimer_usleep(1U*1000000);
|
xtimer_usleep(1U*1000000);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user