mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/telnet_server: add support for LWIP
This commit is contained in:
parent
bdf1c97880
commit
d6f2c883c5
@ -10,13 +10,23 @@ RIOTBASE ?= $(CURDIR)/../..
|
||||
# Include packages that pull up and auto-init the link layer.
|
||||
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
||||
USEMODULE += netdev_default
|
||||
USEMODULE += auto_init_gnrc_netif
|
||||
# Activate ICMPv6 error messages
|
||||
USEMODULE += gnrc_icmpv6_error
|
||||
# Specify the mandatory networking modules for IPv6
|
||||
USEMODULE += gnrc_ipv6_default
|
||||
# Additional networking modules that can be dropped if not needed
|
||||
USEMODULE += gnrc_icmpv6_echo
|
||||
|
||||
# use GNRC by default
|
||||
LWIP ?= 0
|
||||
|
||||
ifeq (0,$(LWIP))
|
||||
USEMODULE += auto_init_gnrc_netif
|
||||
# Activate ICMPv6 error messages
|
||||
USEMODULE += gnrc_icmpv6_error
|
||||
# Specify the mandatory networking modules for IPv6
|
||||
USEMODULE += gnrc_ipv6_default
|
||||
# Additional networking modules that can be dropped if not needed
|
||||
USEMODULE += gnrc_icmpv6_echo
|
||||
else
|
||||
USEMODULE += lwip_ipv6
|
||||
USEMODULE += lwip_netdev
|
||||
endif
|
||||
|
||||
USEMODULE += netutils
|
||||
# Add also the shell, some shell commands
|
||||
USEMODULE += shell
|
||||
|
@ -21,8 +21,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "net/ipv6/addr.h"
|
||||
#include "net/gnrc.h"
|
||||
#include "net/gnrc/netif.h"
|
||||
#include "net/netif.h"
|
||||
#include "net/telnet.h"
|
||||
#include "shell.h"
|
||||
#include "msg.h"
|
||||
|
Loading…
Reference in New Issue
Block a user