From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 29 Nov 2011 14:34:34 +0800 References: <201111290028.01655.lindner_marek@yahoo.de> <201111290342.31065.lindner_marek@yahoo.de> <20111129061810.GG13600@lunn.ch> In-Reply-To: <20111129061810.GG13600@lunn.ch> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111291434.34724.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [RFC] batman-adv: switch routing algorithm at runtime 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 Tuesday, November 29, 2011 14:18:10 Andrew Lunn wrote: > > All functions are checked right now and all functions can be NULL. > > Check the patch #2 ... > > This seems strange. What sort of routing protocol can you build, which > has a NULL receive function? Only static routes. I would perform the > check once in _register(), that there is a receive function, and never > check it again. Save yourself a few cycles. > > There is an LWN article about these ideas. Worth a read. I will post a > link later. Thanks. That will be helpful! Cheers, Marek