From: Simon Wunderlich Date: Tue, 22 Oct 2013 20:50:09 +0000 (+0200) Subject: batman-adv: generalize batman-adv icmp packet handling X-Git-Tag: v3.13-rc1~105^2~132^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da6b8c20a5b8c7edce95c95fa2356300691094f5;p=pandora-kernel.git batman-adv: generalize batman-adv icmp packet handling Instead of handling icmp packets only up to length of icmp_packet_rr, the code should handle any icmp length size. Therefore the length truncating is moved to when the packet is actually sent to userspace (this does not support lengths longer than icmp_packet_rr yet). Longer packets are forwarded without truncating. This patch also cleans up some parts where the icmp header struct could be used instead of other icmp_packet(_rr) structs to make the code more readable. Signed-off-by: Simon Wunderlich Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- Reading git-diff-tree failed