public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Cc: Antonio Quartulli <antonio@open-mesh.com>
Subject: Re: [B.A.T.M.A.N.] [RFCv2 03/10] batman-adv: add bat_orig_print function API
Date: Sat, 3 Aug 2013 23:07:15 +0200	[thread overview]
Message-ID: <20130803210715.GC12891@pandem0nium> (raw)
In-Reply-To: <1375303667-3018-4-git-send-email-ordex@autistici.org>

[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]

On Wed, Jul 31, 2013 at 10:47:40PM +0200, Antonio Quartulli wrote:
> From: Antonio Quartulli <antonio@open-mesh.com>
> 
> Each routing protocol has its own metric and private
> variables, therefore it is useful to introduce a new API
> for originator information printing.
> 
> This API needs to be implemented by each protocol in order
> to provide its specific originator table output.
> 
> Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
> ---
>  bat_iv_ogm.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  originator.c | 66 +++++++++--------------------------------------------------
>  types.h      |  3 +++
>  3 files changed, 80 insertions(+), 56 deletions(-)
> 
> diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
> index 595fcb0..605c954 100644
> --- a/bat_iv_ogm.c
> +++ b/bat_iv_ogm.c
> @@ -1391,6 +1391,72 @@ static int batadv_iv_ogm_receive(struct sk_buff *skb,
>  	return NET_RX_SUCCESS;
>  }
>  
> +/**
> + * batadv_iv_ogm_orig_print - print the originator table
> + * @bat_priv: the bat priv with all the soft interface information
> + * @seq: debugfs table seq_file struct
> + */
> +static void batadv_iv_ogm_orig_print(struct batadv_priv *bat_priv,
> +				     struct seq_file *seq)
> +{
> +	struct batadv_hashtable *hash = bat_priv->orig_hash;
> +	struct hlist_head *head;
> +	struct batadv_orig_node *orig_node;
> +	struct batadv_neigh_node *neigh_node, *neigh_node_tmp;
> +	int batman_count = 0;
> +	int last_seen_secs;
> +	int last_seen_msecs;
> +	unsigned long last_seen_jiffies;
> +	uint32_t i;
> +
> +

unneccesary double newline?

Rest looks good.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2013-08-03 21:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-31 20:47 [B.A.T.M.A.N.] [RFCv2 00/10] Improving the routing protocol abstraction Antonio Quartulli
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 01/10] batman-adv: make struct batadv_neigh_node algorithm agnostic Antonio Quartulli
2013-08-03 20:57   ` Simon Wunderlich
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 02/10] batman-adv: make struct batadv_orig_node " Antonio Quartulli
2013-08-03 21:05   ` Simon Wunderlich
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 03/10] batman-adv: add bat_orig_print function API Antonio Quartulli
2013-08-03 21:07   ` Simon Wunderlich [this message]
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 04/10] batman-adv: add bat_metric_get API function Antonio Quartulli
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 05/10] batman-adv: add bat_metric_is_equiv_or_better " Antonio Quartulli
2013-08-03 21:10   ` Simon Wunderlich
2013-08-10 16:24     ` Antonio Quartulli
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 06/10] batman-adv: add bat_metric_compare " Antonio Quartulli
2013-08-03 21:10   ` Simon Wunderlich
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 07/10] batman-adv: adapt bonding to use the new API functions Antonio Quartulli
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 08/10] batman-adv: adapt the neighbor purging routine " Antonio Quartulli
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 09/10] batman-adv: provide orig_node routing API Antonio Quartulli
2013-07-31 20:47 ` [B.A.T.M.A.N.] [RFCv2 10/10] batman-adv: adapt the TT component to use the new API functions Antonio Quartulli
2013-08-03 21:17   ` Simon Wunderlich
2013-08-03 21:19 ` [B.A.T.M.A.N.] [RFCv2 00/10] Improving the routing protocol abstraction Simon Wunderlich

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=20130803210715.GC12891@pandem0nium \
    --to=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=antonio@open-mesh.com \
    --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