aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2011-04-26 15:31:45 -0400
committerSven Eckelmann <sven@narfation.org>2011-06-20 05:37:41 -0400
commit43676ab590c3f8686fd047d34c3e33803eef71f0 (patch)
tree056303a6b33a23a74610cceee11c946847b22c61 /net/batman-adv/main.h
parent19595e054d35820e026caac314414e435287e3ae (diff)
batman-adv: improved gateway tq-based selection
If a client issues a DHCPREQUEST for renewal, the packet is dropped if the old destination (the old gateway for the client) TQ is smaller than the current best gateway TQ less GW_THRESHOLD Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index f9e0e174b3f6..4f293b594475 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -91,7 +91,6 @@ enum mesh_state {
91#define BCAST_QUEUE_LEN 256 91#define BCAST_QUEUE_LEN 256
92#define BATMAN_QUEUE_LEN 256 92#define BATMAN_QUEUE_LEN 256
93 93
94
95enum uev_action { 94enum uev_action {
96 UEV_ADD = 0, 95 UEV_ADD = 0,
97 UEV_DEL, 96 UEV_DEL,
@@ -102,6 +101,8 @@ enum uev_type {
102 UEV_GW = 0 101 UEV_GW = 0
103}; 102};
104 103
104#define GW_THRESHOLD 50
105
105/* 106/*
106 * Debug Messages 107 * Debug Messages
107 */ 108 */