From patchwork Fri Jan 27 15:11:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 1455 Return-Path: Received: from nm3.bullet.mail.ukl.yahoo.com (nm3.bullet.mail.ukl.yahoo.com [217.146.182.224]) by open-mesh.org (Postfix) with SMTP id 31F066008A7 for ; Fri, 27 Jan 2012 16:12:05 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@yahoo.de; dkim-adsp=none Received: from [217.146.183.217] by nm3.bullet.mail.ukl.yahoo.com with NNFMP; 27 Jan 2012 15:12:04 -0000 Received: from [77.238.184.71] by tm10.bullet.mail.ukl.yahoo.com with NNFMP; 27 Jan 2012 15:12:04 -0000 Received: from [127.0.0.1] by smtp140.mail.ukl.yahoo.com with NNFMP; 27 Jan 2012 15:12:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1327677124; bh=vQIgFwzBOrdwxyq/PvVicQoPAP2ietPGw2ezJ6YLXxo=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=EhonFbTwY3zpDkZ8NICcm7pCiv50IZGJzeNJvtFlcyfQbR2bibd12hqK/oBR6t3XwJhAzX+89tefUyGCCY4dLoTrszdj/nLW5+7HLsQib4XZ0pKIdIFCrJmZF0eH+lhA3kYsF/ih4APpvSKOPl2hdSgElrwgYY8LHS5oMNUHbgc= X-Yahoo-Newman-Id: 543226.82492.bm@smtp140.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: eI1hzjgVM1mdmkqyrkr5VAzfcNgO1R0XYW345VLrGWuTQPu 2fJIz5yOhQhoxrFRfLBEpXv1f_vgRaDbedXsE_v41b20cD7nN8eFmURuFGYw Kc_z2Ib6Dz2gGIVGcD8a74mVF54NhXR2kUAeE5_10UvLF_qF9xp58NutABJn Ig4NO_Hhm3p_7BN72qAQvbYinYSZ2VTZUTQ1rsUp_A2gRkzJLB2P6S879zLN qdWMqNVCCDViwYsW_ak_ZhLr3EBqKllJpegcH0QHtspZrbbp681XJsJjuECM IfGYFs1sk5q7LaVFruQ.JY0xkc8_ok4B_3NE6A97KQk7LNXwETbPTFdS0mZL CD8Fkf2f2QFgOfe8kp8FAZhZSRJ2ZGVqqccSctMyEJdG7nH5vLqfkq2cYBxw PPg-- X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- Received: from localhost (lindner_marek@210.177.7.38 with plain) by smtp140.mail.ukl.yahoo.com with SMTP; 27 Jan 2012 15:12:03 +0000 GMT From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Fri, 27 Jan 2012 23:11:55 +0800 Message-Id: <1327677116-22645-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.5.4 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: encourage batman to take shorter routes by changing the default hop penalty X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2012 15:12:05 -0000 Signed-off-by: Marek Lindner --- soft-interface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/soft-interface.c b/soft-interface.c index 2ffdc74..7548762 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -836,7 +836,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);