From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 14 Jun 2011 14:59:26 +0200 References: <1307986680-21113-1-git-send-email-ordex@autistici.org> <1307998300-5898-1-git-send-email-sven@narfation.org> In-Reply-To: <1307998300-5898-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201106141459.27162.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: clean up the tt_query flags field 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 Monday, June 13, 2011 10:51:40 PM Sven Eckelmann wrote: > From: Antonio Quartulli > > The tt_query subtype is represented by the two leading bits (lsb) of > the tt_query->flags field. Therefore it cannot be handled by simple > "flags" but by two bits wide integer. The TT_QUERY_TYPE_MASK is used to > extract the relevant bits that can be compared to the related enum > values (TT_RESPONSE, TT_REQUEST) Applied in revision 02585b0. Thanks, Marek