From f347b8736f176681fbfc666bf00165125a3274a5 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Fri, 7 May 2010 21:47:07 +0200 Subject: [PATCH] Staging: batman-adv: Clone shared bat packets before modifying them "tcpdump" and "batctl td" will receive packets with a wrong sequence number on systems with a different endianess than network byte order. This happens due to the reordering of bytes in the function which handles aggregated bat packets. The function which receives the bat packets must ensure that these buffers aren't shared with anything else before that function tries to write into it. Otherwise it has to copy the buffers so it is save again to change them. Reported-by: Kevin Steen Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Andrew Lunn Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed