From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 1 Nov 2011 10:14:34 +0100 From: Antonio Quartulli Message-ID: <20111101091433.GC20215@ritirata.org> References: <1319964962-5092-1-git-send-email-ordex@autistici.org> <1319964962-5092-5-git-send-email-ordex@autistici.org> <20111031001004.GE10726@pandem0nium> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20111031001004.GE10726@pandem0nium> Subject: Re: [B.A.T.M.A.N.] [PATCH 4/6] batman-adv: Distributed ARP Table - add ARP parsing functions 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 Mon, Oct 31, 2011 at 01:10:04AM +0100, Simon Wunderlich wrote: > This patch is not checkpatch.pl --strict clean > > On Sun, Oct 30, 2011 at 09:56:00AM +0100, Antonio Quartulli wrote: > > + if (unlikely(!pskb_may_pull(skb, ETH_HLEN + arp_hdr_len(skb->dev) + 8 + 12))) > > + goto out; > > use ETH_ALEN * 2 + 4 * 2 instead to show where theses numbers come from. Actually this is a mistake, because I have recently seen that arp_hdr_len() already includes those supplementary bytes. > > + bat_dbg(DBG_ARP, bat_priv, "ARP message of type %d recognised " > > + "[%pM-%pI4 %pM-%pI4]\n", type, ARP_HW_SRC(skb), > > + &ARP_IP_SRC(skb), ARP_HW_DST(skb), &ARP_IP_DST(skb)); > > Would you mind printing the type as string? something like REQUEST or REPLY instead of 1 and 2 ... Oky Thanks, -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara