summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_v_ogm.h
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2016-01-16 09:40:13 +0100
committerAntonio Quartulli <a@unstable.cc>2016-02-29 09:05:31 +0100
commit9323158ef9f49935f0c61509919acd31dda8f11b (patch)
treeaac9dcf3817462f1f0f6b0071123643968ac5052 /net/batman-adv/bat_v_ogm.h
parentbatman-adv: OGMv2 - add basic infrastructure (diff)
downloadlinux-9323158ef9f49935f0c61509919acd31dda8f11b.tar.xz
linux-9323158ef9f49935f0c61509919acd31dda8f11b.zip
batman-adv: OGMv2 - implement originators logic
Add the support for recognising new originators in the network and rebroadcast their OGMs. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/bat_v_ogm.h')
-rw-r--r--net/batman-adv/bat_v_ogm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/bat_v_ogm.h b/net/batman-adv/bat_v_ogm.h
index d9f178cedcd2..d849c75ada0e 100644
--- a/net/batman-adv/bat_v_ogm.h
+++ b/net/batman-adv/bat_v_ogm.h
@@ -18,6 +18,8 @@
#ifndef _BATMAN_ADV_BATADV_V_OGM_H_
#define _BATMAN_ADV_BATADV_V_OGM_H_
+#include <linux/types.h>
+
struct batadv_hard_iface;
struct batadv_priv;
struct sk_buff;
@@ -25,6 +27,8 @@ struct sk_buff;
int batadv_v_ogm_init(struct batadv_priv *bat_priv);
void batadv_v_ogm_free(struct batadv_priv *bat_priv);
int batadv_v_ogm_iface_enable(struct batadv_hard_iface *hard_iface);
+struct batadv_orig_node *batadv_v_ogm_orig_get(struct batadv_priv *bat_priv,
+ const u8 *addr);
void batadv_v_ogm_primary_iface_set(struct batadv_hard_iface *primary_iface);
int batadv_v_ogm_packet_recv(struct sk_buff *skb,
struct batadv_hard_iface *if_incoming);