From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Mon, 27 Feb 2012 19:03:55 +0800 References: <1330267182-15607-1-git-send-email-ordex@autistici.org> <1330267182-15607-2-git-send-email-ordex@autistici.org> In-Reply-To: <1330267182-15607-2-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201202271903.56270.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: skip the window protection test when the originator has no neighbours Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Sunday, February 26, 2012 22:39:42 Antonio Quartulli wrote: > When we receive an OGM from from a node for the first time, the > last_real_seqno field of the orig_node structure has not been initialised > yet. The value of this field is used to compute the current ogm-seqno > window and therefore the protection mechanism will probably drop the > packet due to an out-of-window error. To avoid this situation this patch > adds a check to skip the window protection mechanism if no neighbour nodes > have already been added. When the first neighbour node is added, the > last_real_seqno field is initialised too. Applied in revision a85b0bc. Thanks, Marek