From: Linus Lüssing Date: Mon, 22 Mar 2010 21:46:15 +0000 (+0100) Subject: Staging: batman-adv: Fixing wrap-around bug in vis X-Git-Tag: v2.6.35-rc1~441^2^2~298 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea4ceb18b525fd7016c10995c0f1313a729c7e2b;p=pandora-kernel.git Staging: batman-adv: Fixing wrap-around bug in vis When the seqno for a vis packet had a wrap around from i.e. 255 to 0, add_packet() would falsely claim the older packet with the seqno 255 as newer as the one with the seqno of 0 and would therefore ignore the new packet. This happens with all following vis packets until the old vis packet expires after 180 seconds timeout. This patch fixes this issue and gets rid of these highly undesired 3min. breaks for the vis-server. Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Andrew Lunn Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed