Skip to content

Commit

Permalink
Merge pull request #3058 from cgundogan/universal_address_fib_split
Browse files Browse the repository at this point in the history
sys/universal_address: separate universal_address from fib
  • Loading branch information
OlegHahm committed Aug 3, 2015
2 parents ecf0f96 + ea5e371 commit 2795d51
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions Makefile.dep
Expand Up @@ -317,6 +317,7 @@ ifneq (,$(filter nhdp,$(USEMODULE)))
endif

ifneq (,$(filter fib,$(USEMODULE)))
USEMODULE += universal_address
USEMODULE += timex
USEMODULE += vtimer
USEMODULE += net_help
Expand Down
3 changes: 3 additions & 0 deletions sys/Makefile
Expand Up @@ -167,6 +167,9 @@ endif
ifneq (,$(filter ng_netdev_eth,$(USEMODULE)))
DIRS += net/link_layer/ng_netdev_eth
endif
ifneq (,$(filter universal_address,$(USEMODULE)))
DIRS += universal_address
endif

DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE})))

Expand Down
2 changes: 1 addition & 1 deletion sys/include/net/ng_fib/ng_fib_table.h
Expand Up @@ -22,7 +22,7 @@

#include <stdint.h>
#include "vtimer.h"
#include "ng_universal_address.h"
#include "universal_address.h"

#ifdef __cplusplus
extern "C" {
Expand Down
Expand Up @@ -7,8 +7,8 @@
*/

/**
* @defgroup net_universal_address Universal Address Container
* @ingroup net
* @defgroup sys_universal_address Universal Address Container
* @ingroup sys
* @brief universal address container
*
* @{
Expand All @@ -25,6 +25,9 @@
extern "C" {
#endif

#include <stdint.h>
#include <stdlib.h>

#define UNIVERSAL_ADDRESS_SIZE (16) /**< size of the used addresses in bytes */

/**
Expand Down
3 changes: 3 additions & 0 deletions sys/universal_address/Makefile
@@ -0,0 +1,3 @@
MODULE = universal_address

include $(RIOTBASE)/Makefile.base
Expand Up @@ -7,7 +7,7 @@
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
* @ingroup fib
* @ingroup sys_universal_address
* @{
* @file
* @brief Functions to manage universal address container
Expand All @@ -23,7 +23,7 @@

#define ENABLE_DEBUG (0)
#include "debug.h"
#include "ng_fib/ng_universal_address.h"
#include "universal_address.h"

/**
* @brief Maximum number of entries handled
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/tests-fib/tests-fib.c
Expand Up @@ -17,7 +17,7 @@

#include "thread.h"
#include "ng_fib.h"
#include "ng_fib/ng_universal_address.h"
#include "universal_address.h"

/*
* @brief helper to fill FIB with unique entries
Expand Down

0 comments on commit 2795d51

Please sign in to comment.