nhdp_metric.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
24 #ifndef NHDP_METRIC_H
25 #define NHDP_METRIC_H
26 
27 #include "rfc5444/rfc5444.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
39 #define NHDP_LMT_HOP_COUNT (163)
40 
41 #define NHDP_LMT_DAT (165)
42 
44 #define NHDP_METRIC (NHDP_LMT_HOP_COUNT)
45 
47 #define NHDP_METRIC_TIMER (5445)
48 
49 #define NHDP_METRIC_NEEDS_TIMER (NHDP_METRIC == NHDP_LMT_DAT)
50 
51 #define NHDP_METRIC_UNKNOWN (0)
52 #define NHDP_METRIC_MINIMUM (RFC5444_METRIC_MIN)
53 #define NHDP_METRIC_MAXIMUM (RFC5444_METRIC_MAX)
54 
56 #define NHDP_Q_MEM_LENGTH (64)
57 
58 #define NHDP_SEQNO_RESTART_DETECT (256)
59 
61 #define NHDP_KD_LM_INC (0x8000)
62 
63 #define NHDP_KD_LM_OUT (0x4000)
64 
65 #define NHDP_KD_NM_INC (0x2000)
66 
67 #define NHDP_KD_NM_OUT (0x1000)
68 
76 #define DAT_MEMORY_LENGTH (NHDP_Q_MEM_LENGTH)
77 
78 #define DAT_REFRESH_INTERVAL (1)
79 
80 #define DAT_HELLO_TIMEOUT_FACTOR (1.2)
81 
82 #define DAT_MINIMUM_BITRATE (1000)
83 
84 #define DAT_MAXIMUM_LOSS (8)
85 
86 #define DAT_CONSTANT (16777216)
87 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif /* NHDP_METRIC_H */