Thread (2 messages) 2 messages, 2 authors, 2012-09-18

Re: [B.A.T.M.A.N.] echo counting in batmand

From: Marek Lindner <hidden>
Date: 2012-09-18 02:59:03

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help