From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Thu, 16 Jun 2011 12:12:53 +0200 References: <1307307664-19910-1-git-send-email-ordex@autistici.org> <201106152328.29223.lindner_marek@yahoo.de> <20110615224355.GA15320@ritirata.org> In-Reply-To: <20110615224355.GA15320@ritirata.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201106161212.54542.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: detect clients connected through a 802.11 device 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 Thursday, June 16, 2011 12:43:55 AM Antonio Quartulli wrote: > > > - tt_local_add(soft_iface, soft_iface->dev_addr); > > > + tt_local_add(soft_iface, soft_iface->dev_addr, NULL_IFINDEX); > > > > Are you sure 0 is not a valid index for any interface ? > > Yes. You can also check the function dev_new_index() at > http://lxr.linux.no/linux+v2.6.39/net/core/dev.c#L5080 > indexes start from 1 :) Ok. > > How about adding a set of flags (TT_CLIENT_ROAM / TT_CLIENT_WIFI / etc) > > instead of adding more and more bool arguments ? In several places the > > code converts one to the other which does not seem necessary. > > You mean simply passing a int value which is combination of the used > flags? mught be a good idea, even for further changes. Yes, that is what I had in mind. Regards, Marek