mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
0c67c02047
This PR depends on #1766. It contains a minimal implementation of the AODVv2 routing protocol. *Not* implemented are: - AckReqs - alternate metrics - multiple interfaces - clients and Client Networks - buffering - all addresses, TLVs, and features that are marked as optional An example application can be found at https://github.com/Lotterleben/RIOT-AODVv2/tree/master/aodvv2_demo. The implementation relies heavily on a functioning Neighbor Discovery Protocol. It might be necessary to fill the neighbor cache manually with the current state of RIOTs NDP implementation. The value of AODVV2_MAX_UNREACHABLE_NODES has been chosen arbitrarily and will be subject to future improvement. Please note that based on my experience, with the default transceiver buffer size (3) of the native port, about 2/3 of the route discoveries will fail. This has been addressed in issue #1747. It is advised to increase the transceiver buffer size when using AODVv2 as a routing protocol.
55 lines
956 B
C
55 lines
956 B
C
/*
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
/**
|
|
* @addtogroup core_util
|
|
* @{
|
|
*
|
|
* @ingroup aodvv2
|
|
* @brief Debug-header for aodvv2 debug messages
|
|
*
|
|
*
|
|
* @author Lotte Steenbrink <lotte.steenbrink@fu-berlin.de>
|
|
*/
|
|
|
|
#ifndef AODV_DEBUG_H_
|
|
#define AODV_DEBUG_H_
|
|
|
|
#include <stdio.h>
|
|
#include "sched.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef DEBUG_ENABLED
|
|
#define ENABLE_AODV_DEBUG (1)
|
|
#endif
|
|
|
|
/**
|
|
* @brief Print aodvv2 specific debug information to std-out with [aodvv2] prefix
|
|
*
|
|
*/
|
|
#if ENABLE_AODV_DEBUG
|
|
#include "tcb.h"
|
|
#define AODV_DEBUG(...) \
|
|
do { \
|
|
printf("[aodvv2] "); \
|
|
printf(__VA_ARGS__); \
|
|
} while (0)
|
|
#else
|
|
#define AODV_DEBUG(...)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* AODVV2_DEBUG_H_*/
|
|
/** @} */
|