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.] [PATCHv3] batman-adv: Add wrapper to look up neighbor and send skb
Date: Tue, 17 Jul 2012 12:47:04 +0200 [thread overview]
Message-ID: <201207171247.05177.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1341784829-31559-1-git-send-email-martin@hundeboll.net>
On Monday, July 09, 2012 00:00:29 Martin Hundebøll wrote:
> +bool batadv_send_skb_to_orig(struct batadv_orig_node *orig_node,
> + struct sk_buff *skb,
> + 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;
> +}
Can we make the skb variable the first argument ? Something like this:
bool batadv_send_skb_to_orig(struct sk_buff *skb,
struct batadv_orig_node *orig_node,
struct batadv_hard_iface *recv_if)
Regards,
Marek
next prev parent reply other threads:[~2012-07-17 10:47 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 [this message]
2012-10-13 17:30 ` [B.A.T.M.A.N.] [PATCH] " Martin Hundebøll
2012-10-13 17:45 ` Marek Lindner
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=201207171247.05177.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