All of lore.kernel.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>
Cc: "Martin Hundebøll" <martin@hundeboll.net>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Add wrapper to look up neighbor and send skb
Date: Sun, 14 Oct 2012 01:45:41 +0800	[thread overview]
Message-ID: <5079A8C5.4020407@yahoo.de> (raw)
In-Reply-To: <1350149454-809-1-git-send-email-martin@hundeboll.net>

On 10/14/2012 01:30 AM, Martin Hundebøll wrote:
> +bool batadv_send_skb_to_orig(struct sk_buff *skb,
> +			     struct batadv_orig_node *orig_node,
> +			     struct batadv_hard_iface *recv_if)
> +{
> +	struct batadv_priv *bat_priv = orig_node->bat_priv;
> +	struct batadv_neigh_node *neigh_node;
> +
> +	/* batadv_find_router() increases neigh_nodes refcount if found. */
> +	neigh_node = batadv_find_router(bat_priv, orig_node, recv_if);
> +	if (!neigh_node)
> +		return false;
> +
> +	/* route it */
> +	batadv_send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr);
> +
> +	batadv_neigh_node_free_ref(neigh_node);
> +
> +	return true;
> +}

Our new quality standards demand proper kernel documentation for each 
new function / struct / define added to the code.
Only 3 months ago this code would have been acceptable.  ;-)

Cheers,
Marek

PS: The version information is missing in the subject of this mail. 
Please help your maintainer from hell to save some time ...  :)


  reply	other threads:[~2012-10-13 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 21:24 [B.A.T.M.A.N.] [PATCH] batman-adv: Add wrapper to look up neighbor and send skb Martin Hundebøll
2012-07-08 21:50 ` [B.A.T.M.A.N.] [PATCHv2] " Martin Hundebøll
2012-07-08 22:00 ` [B.A.T.M.A.N.] [PATCHv3] " Martin Hundebøll
2012-07-17 10:47   ` Marek Lindner
2012-10-13 17:30 ` [B.A.T.M.A.N.] [PATCH] " Martin Hundebøll
2012-10-13 17:45   ` Marek Lindner [this message]
2012-10-13 17:52 ` [B.A.T.M.A.N.] [PATCHv79.4] " Martin Hundebøll
2012-10-15 23:46   ` Sven Eckelmann

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=5079A8C5.4020407@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=martin@hundeboll.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.