From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sun, 14 Oct 2012 22:57:29 +0800 References: <1349787887-26501-1-git-send-email-ordex@autistici.org> In-Reply-To: <1349787887-26501-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201210142257.29499.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: enable fast client detection using unicast_4addr packets 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 Tuesday, October 09, 2012 21:04:47 Antonio Quartulli wrote: > @@ -1061,9 +1063,12 @@ int batadv_recv_unicast_packet(struct sk_buff *skb, > > /* packet for me */ > if (batadv_is_my_mac(unicast_packet->dest)) { > - if (is4addr) > + if (is4addr) { > batadv_dat_inc_counter(bat_priv, > unicast_4addr_packet->subtyp > e); + orig_addr = unicast_4addr_packet->src; > + orig_node = batadv_orig_hash_find(bat_priv, > orig_addr); + } Last time I checked batadv_orig_hash_find() increased a refcounter ... Cheers, Marek