Commit graph android_kernel_sony_sdm845/net/batman-adv/bitarray.c
Message SHA1
batman-adv: Replace bitarray operations with bitmap
bitarray.c consists mostly of functionality that is already available as part
of the standard kernel API. batman-adv could use architecture optimized code
and reduce the binary size by switching to the standard functions.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

Sven Eckelmann   authored and   Antonio Quartulli   commited 2012-04-11 14:28:58 +02:00
0079d2cef1
batman-adv: Fix indentation of multiline statements
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Sven Eckelmann   authored and   Marek Lindner   commited 2012-02-28 19:14:31 +08:00
7c64fd98ce
batman-adv: Update copyright years
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Sven Eckelmann   authored and   Marek Lindner   commited 2012-02-17 02:50:21 +08:00
567db7b0b7
batman-adv: Fix range check for expected packets
The check for new packets in the future used a wrong binary operator,
which makes the check expression always true and accepting too many
packets.

Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>

Simon Wunderlich   authored and   Sven Eckelmann   commited 2011-11-20 13:08:35 +01:00
76e8d7b0d1
batman-adv: correct several typ0s in the comments
Several typos have been corrected and some sentences have been rephrased

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Antonio Quartulli   authored and   Marek Lindner   commited 2011-08-22 15:16:19 +02:00
015758d002
batman-adv: Reduce usage of char
char was used in different places to store information without really
using the characteristics of that data type or by ignoring the fact that
char has not a well defined signedness.

Signed-off-by: Sven Eckelmann <sven@narfation.org>

Sven Eckelmann   commited 2011-06-20 11:37:18 +02:00
b4e1705417
batman-adv: count_real_packets() in batman-adv assumes char is signed
count_real_packets() in batman-adv assumes char is signed, and returns -1
through it:

net/batman-adv/routing.c: In function 'receive_bat_packet':
net/batman-adv/routing.c:739: warning: comparison is always false due to limited range of data type

Use int instead.

Signed-off-by: David Howells <dhowells@redhat.com>
[sven@narfation.org: Rebase on top of current version]
Signed-off-by: Sven Eckelmann <sven@narfation.org>

David Howells   authored and   Sven Eckelmann   commited 2011-06-20 11:23:36 +02:00
b2c44a5383
batman-adv: Remove explicit casts cast from void* for store
It is not necessary to cast a void* to the pointer type when we just
store it and don't want to do pointer arithmetic before the actual
assignment.

Signed-off-by: Sven Eckelmann <sven@narfation.org>

Sven Eckelmann   commited 2011-05-30 07:39:32 +02:00
5f718c2007
batman-adv: Add const type qualifier for pointers
batman-adv uses pointers which are marked as const and should not
violate that type qualifier by passing it to functions which force a
cast to the non-const version.

Signed-off-by: Sven Eckelmann <sven@narfation.org>

Sven Eckelmann   commited 2011-05-30 07:39:31 +02:00
747e4221a0
batman-adv: Update copyright years
Signed-off-by: Sven Eckelmann <sven@narfation.org>

Sven Eckelmann   commited 2011-01-31 14:57:12 +01:00
64afe35398
net: Add batman-adv meshing protocol
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a routing
protocol for multi-hop ad-hoc mesh networks. The networks may be wired or
wireless. See http://www.open-mesh.org/ for more information and user space
tools.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Sven Eckelmann   authored and   David S. Miller   commited 2010-12-16 13:44:24 -08:00
c6c8fea297