From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sun, 4 Mar 2012 16:17:57 +0800 References: <1330587321-12177-1-git-send-email-lindner_marek@yahoo.de> <1330587321-12177-3-git-send-email-lindner_marek@yahoo.de> <20120303175953.GA15413@pandem0nium> In-Reply-To: <20120303175953.GA15413@pandem0nium> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201203041617.57848.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 3/6] batman-adv: register batman ogm receive function during protocol init 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, March 04, 2012 01:59:53 Simon Wunderlich wrote: > On Thu, Mar 01, 2012 at 03:35:18PM +0800, Marek Lindner wrote: > > -static void bat_iv_ogm_receive(struct hard_iface *if_incoming, > > - struct sk_buff *skb) > > +static void _bat_iv_ogm_receive(struct sk_buff *skb, > > + struct hard_iface *if_incoming) > > > Personally, I don't like underscore functions. They are usually created > because of a lack of creativity, but are later called from different > places, do different jobs and in the end everyone is confused. :) Is it > possibble to change the name, e.g. to bat_iv_ogm_handle()? > Hmm.., I kind of agree. I'll think about another solution. :-) > We should somewhere add a check whether the hard_iface is actually assigned > to a mesh using the BATMAN IV algorithm. When more algorithms are added, > we only want the assigned protocol to be handled, others should be > ignored. You are right - we need a check but not necessarily in this patch. We lived without such a check for quite while. This patch is not introducing a loophole that did not exist before. I'll send a separate patch. Thanks for the comments! Cheers, Marek