diff --git a/sys/Makefile.include b/sys/Makefile.include index 6ee00a8b9..b1f844719 100644 --- a/sys/Makefile.include +++ b/sys/Makefile.include @@ -24,10 +24,6 @@ ifneq (,$(filter oneway_malloc,$(USEMODULE))) USEMODULE_INCLUDES += $(RIOTBASE)/sys/oneway-malloc/include endif -ifneq (,$(filter fib,$(USEMODULE))) - USEMODULE_INCLUDES += $(RIOTBASE)/sys/include/net -endif - ifneq (,$(filter cpp11-compat,$(USEMODULE))) USEMODULE_INCLUDES += $(RIOTBASE)/sys/cpp11-compat/include endif diff --git a/sys/auto_init/auto_init.c b/sys/auto_init/auto_init.c index ff9f88658..1186180b5 100644 --- a/sys/auto_init/auto_init.c +++ b/sys/auto_init/auto_init.c @@ -86,7 +86,7 @@ #endif #ifdef MODULE_FIB -#include "net/ng_fib.h" +#include "net/fib.h" #endif #define ENABLE_DEBUG (0) diff --git a/sys/include/net/ng_fib.h b/sys/include/net/fib.h similarity index 99% rename from sys/include/net/ng_fib.h rename to sys/include/net/fib.h index 81f00461a..f2596d44e 100644 --- a/sys/include/net/ng_fib.h +++ b/sys/include/net/fib.h @@ -15,7 +15,8 @@ * * @file * @brief Types and functions for FIB - * @author Martin Landsmann + * + * @author Martin Landsmann */ #ifndef FIB_H_ diff --git a/sys/include/net/ng_fib/ng_fib_table.h b/sys/include/net/fib/table.h similarity index 94% rename from sys/include/net/ng_fib/ng_fib_table.h rename to sys/include/net/fib/table.h index 0477a0e01..1986f4b9a 100644 --- a/sys/include/net/ng_fib/ng_fib_table.h +++ b/sys/include/net/fib/table.h @@ -7,14 +7,13 @@ */ /** - * @brief forwarding table structs * @ingroup net_fib - * * @{ * * @file * @brief Types and functions for operating fib tables - * @author Martin Landsmann + * + * @author Martin Landsmann */ #ifndef FIB_TABLE_H_ diff --git a/sys/net/network_layer/fib/fib.c b/sys/net/network_layer/fib/fib.c index 5523cbc9c..fc227accf 100644 --- a/sys/net/network_layer/fib/fib.c +++ b/sys/net/network_layer/fib/fib.c @@ -1,17 +1,20 @@ /** - * FIB implementation - * * Copyright (C) 2014 Martin Landsmann * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. - * - * @ingroup fib + */ + +/** + * @ingroup net_fib * @{ + * * @file - * @brief Functions to manage FIB entries - * @author Martin Landsmann + * @brief Functions to manage FIB entries + * + * @author Martin Landsmann + * * @} */ @@ -27,8 +30,8 @@ #define ENABLE_DEBUG (0) #include "debug.h" -#include "ng_fib.h" -#include "ng_fib/ng_fib_table.h" +#include "net/fib.h" +#include "net/fib/table.h" #ifdef MODULE_NG_IPV6_ADDR #include "net/ng_ipv6/addr.h" diff --git a/sys/net/network_layer/ng_ndp/ng_ndp.c b/sys/net/network_layer/ng_ndp/ng_ndp.c index 1a536638d..b50c31756 100644 --- a/sys/net/network_layer/ng_ndp/ng_ndp.c +++ b/sys/net/network_layer/ng_ndp/ng_ndp.c @@ -29,7 +29,7 @@ #include "vtimer.h" #include "net/ng_ndp.h" -#include "net/ng_fib.h" +#include "net/fib.h" #define ENABLE_DEBUG (0) #include "debug.h" diff --git a/sys/shell/commands/sc_fib.c b/sys/shell/commands/sc_fib.c index 0d9811844..9f36f6a97 100644 --- a/sys/shell/commands/sc_fib.c +++ b/sys/shell/commands/sc_fib.c @@ -24,10 +24,10 @@ #include #include "thread.h" #include "inet_pton.h" -#include "ng_fib.h" #ifdef MODULE_NG_NETIF -#include "ng_netif.h" +#include "net/ng_netif.h" #endif +#include "net/fib.h" #define INFO1_TXT "fibroute add via [dev ]" #define INFO2_TXT " [lifetime ]" diff --git a/tests/unittests/tests-fib/tests-fib.c b/tests/unittests/tests-fib/tests-fib.c index 03b86dda7..325d1b344 100644 --- a/tests/unittests/tests-fib/tests-fib.c +++ b/tests/unittests/tests-fib/tests-fib.c @@ -16,7 +16,7 @@ #include "vtimer.h" #include "thread.h" -#include "ng_fib.h" +#include "net/fib.h" #include "universal_address.h" /*