mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ETX-functionality is now part of a common routing-module
This commit is contained in:
parent
db3ad29285
commit
ef5eaff1bc
@ -34,6 +34,14 @@ ifneq (,$(filter sixlowborder,$(USEMODULE)))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter rpl,$(USEMODULE)))
|
||||
USEMODULE += routing
|
||||
endif
|
||||
|
||||
ifneq (,$(filter routing,$(USEMODULE)))
|
||||
USEMODULE += sixlowpan
|
||||
endif
|
||||
|
||||
ifneq (,$(filter sixlowpan,$(USEMODULE)))
|
||||
ifeq (,$(filter ieee802154,$(USEMODULE)))
|
||||
USEMODULE += ieee802154
|
||||
|
@ -54,7 +54,6 @@ USEMODULE += posix
|
||||
USEMODULE += ps
|
||||
USEMODULE += vtimer
|
||||
USEMODULE += defaulttransceiver
|
||||
USEMODULE += sixlowpan
|
||||
USEMODULE += rpl
|
||||
USEMODULE += destiny
|
||||
|
||||
|
@ -62,6 +62,9 @@ endif
|
||||
ifneq (,$(filter rpl,$(USEMODULE)))
|
||||
DIRS += net/routing/rpl
|
||||
endif
|
||||
ifneq (,$(filter routing,$(USEMODULE)))
|
||||
DIRS += net/routing
|
||||
endif
|
||||
ifneq (,$(filter ieee802154,$(USEMODULE)))
|
||||
DIRS += net/link_layer/ieee802154
|
||||
endif
|
||||
|
3
sys/net/routing/Makefile
Normal file
3
sys/net/routing/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE:=$(shell basename $(CURDIR))
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -101,7 +101,6 @@ transceiver_command_t tcmd;
|
||||
//Message to send probes with
|
||||
msg_t mesg;
|
||||
|
||||
//RPL-address
|
||||
static ipv6_addr_t *own_address;
|
||||
|
||||
static etx_probe_t *etx_get_send_buf(void)
|
||||
@ -113,7 +112,7 @@ static etx_probe_t *etx_get_rec_buf(void)
|
||||
return ((etx_probe_t *) &(etx_rec_buf[0]));
|
||||
}
|
||||
|
||||
void show_candidates(void)
|
||||
void etx_show_candidates(void)
|
||||
{
|
||||
etx_neighbor_t *candidate;
|
||||
etx_neighbor_t *end;
|
@ -209,7 +209,7 @@ uint8_t rpl_init(int if_id)
|
||||
|
||||
/* INSERT NEW OBJECTIVE FUNCTIONS HERE */
|
||||
objective_functions[0] = rpl_get_of0();
|
||||
/* objective_functions[1] = rpl_get_of_ETX() */
|
||||
objective_functions[1] = rpl_get_of_mrhof();
|
||||
|
||||
sixlowpan_lowpan_init_interface(if_id);
|
||||
/* need link local prefix to query _our_ corresponding address */
|
||||
|
Loading…
Reference in New Issue
Block a user