From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sat, 20 Apr 2013 23:50:50 +0800 References: <1364976860-13225-1-git-send-email-ordex@autistici.org> In-Reply-To: <1364976860-13225-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201304202350.50286.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH maint] batman-adv: use the proper header len when checking the TTVN 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: b.a.t.m.a.n@lists.open-mesh.org Cc: Antonio Quartulli , Antonio Quartulli On Wednesday, April 03, 2013 16:14:20 Antonio Quartulli wrote: > From: Antonio Quartulli > > Unicast packet might be of type either UNICAST or > UNICAST4ADDR. > In the two cases the header size is different, but the > mechanism checking the TTVN field was assuming it to be > always of the same type (UNICAST), so failing to access the > inner Ethernet header in case of UNICAST4ADDR. > > Fix this by passing the real header length as argument. > > Signed-off-by: Antonio Quartulli > --- > routing.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) Applied in revision 9b96ecb. Thanks, Marek