1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/routing/rpl/of_mrhof.h

50 lines
1.1 KiB
C
Raw Normal View History

/*
* Copyright (C) 2014 Oliver Hahm <oliver.hahm@inria.fr>
*
* 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.
*/
2014-08-06 13:48:18 +02:00
#ifndef OF_MRHOF_H
#define OF_MRHOF_H
2014-08-06 13:48:18 +02:00
#include "rpl/rpl_structs.h"
#include "rpl/rpl_config.h"
/**
* Disallow links with greater than 4 expected
* transmission counts on the selected path.
*/
#define MAX_LINK_METRIC (512)
2014-08-06 13:48:18 +02:00
/**
* Disallow paths with greater than 256
* expected transmission counts.
*/
#define MAX_PATH_COST (0x8000)
2014-08-06 13:48:18 +02:00
/**
* Switch to a new path only if it is
* expected to require at least 1.5 fewer transmissions than the
* current path.
*/
#define PARENT_SWITCH_THRESHOLD (192)
2014-08-06 13:48:18 +02:00
/**
* Do not allow a node to become a floating root.
* (Currently unused, since the RPL-implementation does not allow for floating
* roots).
*/
#define ALLOW_FLOATING_ROOT (0)
2014-08-06 13:48:18 +02:00
/**
* While assigning Rank when using ETX, use the representation of ETX described
* in [RFC6551], i.e., assign Rank equal to ETX * 128.
*/
#define ETX_RANK_MULTIPLIER (0x80)
2013-08-04 04:47:22 +02:00
rpl_of_t *rpl_get_of_mrhof(void);
2014-08-06 13:48:18 +02:00
#endif /* OF_MRHOF_H */