Re: [B.A.T.M.A.N.] [PATCHv4 7/7] batman-adv: add Distributed ARP Table compile option

Marek Lindner
2011-11-25T01:19:09Z

On Friday, November 25, 2011 06:21:19 Antonio Quartulli wrote:
> /*
> - * dat_addr_t is the type used for all DHT indexes. If it is changed,
> - * DAT_ADDR_MAX is changed as well.
> - *
> - * *Please be careful: dat_addr_t must be UNSIGNED*
> - */
> +* dat_addr_t is the type used for all DHT indexes. If it is changed,
> +* DAT_ADDR_MAX is changed as well.
> +*
> +* *Please be careful: dat_addr_t must be UNSIGNED*
> +*/
> #define dat_addr_t uint16_t
> #define DAT_ADDR_MAX biggest_unsigned_int(dat_addr_t)
>
> #define ARP_HW_SRC(skb) ((uint8_t *)(skb->data) + sizeof(struct ethhdr) +
> \ - sizeof(struct arphdr))
> + sizeof(struct arphdr))
> #define ARP_IP_SRC(skb) (*(uint32_t *)(ARP_HW_SRC(skb) + ETH_ALEN))
> #define ARP_HW_DST(skb) (ARP_HW_SRC(skb) + ETH_ALEN + 4)
> #define ARP_IP_DST(skb) (*(uint32_t *)(ARP_HW_SRC(skb) + ETH_ALEN * 2 +
> 4))
> +
> bool arp_snoop_outgoing_request(struct bat_priv *bat_priv,
> - struct sk_buff *skb);
> + struct sk_buff *skb);
> bool arp_snoop_incoming_request(struct bat_priv *bat_priv,
> - struct sk_buff *skb);
> + struct sk_buff *skb);
> bool arp_snoop_outgoing_reply(struct bat_priv *bat_priv, struct sk_buff
> *skb); bool arp_snoop_incoming_reply(struct bat_priv *bat_priv, struct
> sk_buff *skb); bool arp_drop_broadcast_packet(struct bat_priv *bat_priv,
> - struct forw_packet *forw_packet);
> + struct forw_packet *forw_packet);

This looks like a couple of spacing fixes that do not belong here ...

Regards,
Marek