From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Thu, 24 Jan 2013 21:36:11 +0800 References: <51005884.7090106@universe-factory.net> <20130123215352.GD10344@ritirata.org> In-Reply-To: <20130123215352.GD10344@ritirata.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201301242136.11695.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: filter out invalid DAT entries 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 On Thursday, January 24, 2013 05:53:52 Antonio Quartulli wrote: > > It might make sense though to check for different types of addresses > > that are invalid for ARP (zeronet, loopback, multicast, etc.), but I > > wanted to keep the patch as simple as possible. If you think these > > should be filtered as well, I'll prepare a v2. > > in distributed-arp-table.c:784 you can already find these checks ;) If most of the checking is done in batadv_arp_get_type() why not moving these checks there too ? That would allow to have all checks in the same place ? Cheers, Marek