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.] [PATCHv2 3/6] batman-adv: reorder packet types
Date: Sat, 20 Apr 2013 17:40:53 +0800 [thread overview]
Message-ID: <201304201740.53565.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1366401149-31600-4-git-send-email-siwu@hrz.tu-chemnitz.de>
On Saturday, April 20, 2013 03:52:26 Simon Wunderlich wrote:
> @@ -892,6 +892,25 @@ static int batadv_check_unicast_ttvn(struct
> batadv_priv *bat_priv, return 1;
> }
>
> +int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb,
> + struct batadv_hard_iface *recv_if)
> +{
> + struct batadv_unicast_packet *unicast_packet;
> + struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface);
> + int check, hdr_size = sizeof(*unicast_packet);
> +
> + check = batadv_check_unicast_packet(bat_priv, skb, hdr_size);
> + if (check < 0)
> + return NET_RX_DROP;
> +
> + /* we don't know about this type, drop it. */
> + unicast_packet = (struct batadv_unicast_packet *)skb->data;
> + if (batadv_is_my_mac(bat_priv, unicast_packet->dest))
> + return NET_RX_DROP;
> +
> + return batadv_route_unicast_packet(skb, recv_if);
> +}
Kernel doc ?
Cheers,
Marek
next prev parent reply other threads:[~2013-04-20 9:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 19:52 [B.A.T.M.A.N.] [PATCHv2 0/6] compat bump work Simon Wunderlich
2013-04-19 19:52 ` [B.A.T.M.A.N.] [PATCHv2 1/6] batman-adv: remove vis functionality Simon Wunderlich
2013-04-19 19:52 ` [B.A.T.M.A.N.] [PATCHv2 2/6] batman-adv: add build check macros for packet member offset Simon Wunderlich
2013-04-20 9:38 ` Marek Lindner
2013-04-19 19:52 ` [B.A.T.M.A.N.] [PATCHv2 3/6] batman-adv: reorder packet types Simon Wunderlich
2013-04-20 9:40 ` Marek Lindner [this message]
2013-04-19 19:52 ` [B.A.T.M.A.N.] [PATCHv2 4/6] batman-adv: remove packed from batadv_ogm_packet Simon Wunderlich
2013-04-20 9:41 ` Marek Lindner
2013-04-19 19:52 ` [B.A.T.M.A.N.] [PATCHv2 5/6] batman-adv: reorder batadv_iv_flags Simon Wunderlich
2013-04-20 9:42 ` Marek Lindner
2013-04-19 19:52 ` [B.A.T.M.A.N.] [PATCHv2 6/6] batman-adv: only add recordroute information to icmp request/reply 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=201304201740.53565.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