From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 1 Jun 2011 07:34:25 +0200 From: Andrew Lunn Message-ID: <20110601053425.GA27695@lunn.ch> References: <1306763217-27752-1-git-send-email-lindner_marek@yahoo.de> <1306780839-9375-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1306780839-9375-1-git-send-email-ordex@autistici.org> Subject: Re: [B.A.T.M.A.N.] [PATCHv3] batman-adv: modify TT_RESPONSE-full-table format 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 Cc: Marek Lindner > + ssize_t tt_query_size = sizeof(struct tt_query_packet); > + int i; > + > + if (sizeof(struct tt_query_packet) + tt_len > > + primary_if->soft_iface->mtu) { > + tt_len = primary_if->soft_iface->mtu - tt_query_size; > + tt_len -= tt_len % sizeof(struct tt_change); > + } Hi Antonio This first struck me as being asymmetric. Then i say that tt_query_size is sizeof(struct tt_query_packet). So use it in the if statement, and then symmetry is restored and probably the indentation looks better. Andrew