From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Fri, 10 Feb 2012 22:21:19 +0800 References: <1328830902-11574-1-git-send-email-ordex@autistici.org> <1328830902-11574-5-git-send-email-ordex@autistici.org> In-Reply-To: <1328830902-11574-5-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201202102221.20158.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv5 4/9] 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 Friday, February 10, 2012 07:41:37 Antonio Quartulli wrote: > +#define ARP_HW_SRC(skb) ((uint8_t *)(skb->data) + sizeof(struct ethhdr) + > \ + sizeof(struct arphdr)) You could replace all occurences of "sizeof(struct ethhdr)" with ETH_HLEN. Cheers, Marek