batman-adv: encourage batman to take shorter routes by changing the default hop penalty
authorMarek Lindner <lindner_marek@yahoo.de>
Fri, 27 Jan 2012 15:11:55 +0000 (23:11 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 11 Apr 2012 12:28:58 +0000 (14:28 +0200)
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/soft-interface.c

index a5590f4193f1f731cb9a562e952e72f02ed85d0e..82c097d6ec932bd0c99c9ff46e53e381d0d88f8e 100644 (file)
@@ -834,7 +834,7 @@ struct net_device *softif_create(const char *name)
        atomic_set(&bat_priv->gw_sel_class, 20);
        atomic_set(&bat_priv->gw_bandwidth, 41);
        atomic_set(&bat_priv->orig_interval, 1000);
-       atomic_set(&bat_priv->hop_penalty, 10);
+       atomic_set(&bat_priv->hop_penalty, 30);
        atomic_set(&bat_priv->log_level, 0);
        atomic_set(&bat_priv->fragmentation, 1);
        atomic_set(&bat_priv->bcast_queue_left, BCAST_QUEUE_LEN);