Date: 2009-10-17 22:01:20 +0000 (Sat, 17 Oct 2009)
New Revision: 1451
drop false packets which are found in the padding of Ethernet frames.
--- trunk/batman-adv-kernelland/routing.c 2009-10-17 19:28:57 UTC (rev 1450)
+++ trunk/batman-adv-kernelland/routing.c 2009-10-17 22:01:20 UTC (rev 1451)
@@ -400,6 +400,19 @@
char is_my_addr = 0, is_my_orig = 0, is_my_oldorig = 0, is_broadcast = 0, is_bidirectional, is_single_hop_neigh, is_duplicate;
unsigned short if_incoming_seqno;
+ /* Silently drop when the batman packet is actually not a correct packet.
+ * This might happen if a packet is padded (e.g. Ethernet has a
+ * minimum frame length of 64 byte) and the aggregation interprets
+ * it as an additional length.
+ * TODO: A more sane solution would be to have a bit in the batman_packet
+ * to detect whether the packet is the last packet in an aggregation.
+ * Here we expect that the padding is always zero (or not 0x01)
+ if (batman_packet->packet_type != BAT_PACKET)
/* could be changed by schedule_own_packet() */
if_incoming_seqno = atomic_read(&if_incoming->seqno);
Date: 2009-10-17 19:28:57 +0000 (Sat, 17 Oct 2009)
New Revision: 1450
announce compile-compatibility for tested kernels in the README
--- trunk/batman-adv-kernelland/README 2009-10-17 18:08:34 UTC (rev 1449)
+++ trunk/batman-adv-kernelland/README 2009-10-17 19:28:57 UTC (rev 1450)
@@ -6,7 +6,7 @@
The kernel implementation of batman-advanced. It does not depend on any network
driver, and can be used on wifi as well as ethernet, vpn, etc ... (anything
with ethernet-style layer 2).
-It compiles against and should work with Linux 2.6.20 - 2.6.28. Supporting older
+It compiles against and should work with Linux 2.6.20 - 2.6.31. Supporting older
versions is not planned, but it's probably easy to backport it. If you work on a
backport, feel free to contact us. :-)