From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 27 Jun 2011 07:33:19 +0200 From: Andrew Lunn Message-ID: <20110627053319.GH12315@lunn.ch> References: <1309091169-27226-1-git-send-email-ordex@autistici.org> <1309127157-32507-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1309127157-32507-1-git-send-email-ordex@autistici.org> Subject: Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: pass a unique flag arg instead of a sequence of bool ones 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 Hi Antonio > + /* NOPURGE flag has not to go on the wire */ > + flags &= ~TT_CLIENT_NOPURGE; > > + tt_change_node->change.flags = flags; I don't remember the packet format. But i assume flags on the wire is a u8? How about making TT_CLIENT_NOPURGE 1<<8 or bigger, so it is automatically not sent on the wire? It will also make it easier sometime in the future when you want to use the bit on the wire that TT_CLIENT_NOPURGE is currently taking. You might also want to change the function parameters flags from int to uint, so avoiding sign extension problems. Andrew