public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] echo counting in batmand
Date: Tue, 18 Sep 2012 10:59:03 +0800	[thread overview]
Message-ID: <201209181059.03866.lindner_marek@yahoo.de> (raw)
In-Reply-To: <CA+h5VgqHDke=U-dNZ8Z+27Oe2vvbNZmnARMZodFqxLp_PFTH6w@mail.gmail.com>


Hi,

> if ((has_directlink_flag) && (if_incoming->addr.sin_addr.s_addr ==
> bat_packet->orig) && (bat_packet->seqno - if_incoming->out.seqno + 2
> == 0)) {
> 
> 					debug_output(4, "count own bcast (is_my_orig): old = %i, 
",
> orig_neigh_node->bcast_own_sum[if_incoming->if_num]);
> 
> 					bit_mark((TYPE_OF_WORD
> *)&(orig_neigh_node->bcast_own[if_incoming->if_num * num_words]), 0);
> 					orig_neigh_node->bcast_own_sum[if_incoming->if_num] =
> bit_packet_count((TYPE_OF_WORD
> *)&(orig_neigh_node->bcast_own[if_incoming->if_num * num_words]));
> 
> 					debug_output(4, "new = %i \n",
> orig_neigh_node->bcast_own_sum[if_incoming->if_num]);
> 
> 				}

you may want to look at the corresponding kernel code because it is way 
cleaner and easier to understand.

Cheers,
Marek

      reply	other threads:[~2012-09-18  2:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-16 15:17 [B.A.T.M.A.N.] echo counting in batmand Dominic Follett-Smith
2012-09-18  2:59 ` Marek Lindner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201209181059.03866.lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox