linux-hardened/net/batman-adv
Sven Eckelmann 0bb857511b batman-adv: Check type of x and y in seq_(before|after)
seq_before and seq_after depend on the fact that both sequence numbers
have the same type and thus the same bitwidth. We can ensure that by
compile time checking using a compare between the pointer to the
temporary buffers which were created using the typeof of both
parameters. For example gcc would create a warning like
"warning: comparison of distinct pointer types lacks a cast".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2011-05-30 07:39:35 +02:00
..
aggregation.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
aggregation.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
bat_debugfs.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
bat_debugfs.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bat_sysfs.c batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
bat_sysfs.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bitarray.c batman-adv: Remove explicit casts cast from void* for store 2011-05-30 07:39:32 +02:00
bitarray.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
gateway_client.c batman-adv: Use rcu_dereference_protected by update-side 2011-05-30 07:39:34 +02:00
gateway_client.h batman-adv: concentrate all curr_gw related rcu operations in select/deselect functions 2011-04-17 21:11:01 +02:00
gateway_common.c batman-adv: Only use int up and down gw representation 2011-05-30 07:39:32 +02:00
gateway_common.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
hard-interface.c batman-adv: Use rcu_dereference_protected by update-side 2011-05-30 07:39:34 +02:00
hard-interface.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
hash.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
hash.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
icmp_socket.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
icmp_socket.h batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
Kconfig net: Add batman-adv meshing protocol 2010-12-16 13:44:24 -08:00
main.c batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
main.h batman-adv: Check type of x and y in seq_(before|after) 2011-05-30 07:39:35 +02:00
Makefile batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
originator.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
originator.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
packet.h batman-adv: Remove multiline comments from line ending 2011-05-08 16:10:42 +02:00
ring_buffer.c batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
ring_buffer.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
routing.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
routing.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
send.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
send.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
soft-interface.c batman-adv: Use rcu_dereference_protected by update-side 2011-05-30 07:39:34 +02:00
soft-interface.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
translation-table.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
translation-table.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
types.h batman-adv: Remove multiline comments from line ending 2011-05-08 16:10:42 +02:00
unicast.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
unicast.h batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
vis.c batman-adv: move smallest_signed_int(), seq_before() and seq_after() into main.h 2011-05-30 07:39:35 +02:00
vis.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00