summaryrefslogtreecommitdiff
path: root/net/batman-adv/bat_v_elp.h
diff options
context:
space:
mode:
authorMarek Lindner <mareklindner@neomailbox.ch>2016-05-07 11:54:17 (GMT)
committerAntonio Quartulli <a@unstable.cc>2016-05-18 03:49:44 (GMT)
commitebe24cea95ab969f76f2922032f6c390fdc816f2 (patch)
tree74a7b66238dd55bed64c3d3f7815c3642ddd7382 /net/batman-adv/bat_v_elp.h
parente123705e58bf171be8c6eb0902ebfb5d6ed255ad (diff)
downloadlinux-ebe24cea95ab969f76f2922032f6c390fdc816f2.tar.xz
batman-adv: initialize ELP orig address on secondary interfaces
This fix prevents nodes to wrongly create a 00:00:00:00:00:00 originator which can potentially interfere with the rest of the neighbor statistics. Fixes: d6f94d91f766 ("batman-adv: ELP - adding basic infrastructure") Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <a@unstable.cc>
Diffstat (limited to 'net/batman-adv/bat_v_elp.h')
-rw-r--r--net/batman-adv/bat_v_elp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/bat_v_elp.h b/net/batman-adv/bat_v_elp.h
index e95f1bc..cc130b2 100644
--- a/net/batman-adv/bat_v_elp.h
+++ b/net/batman-adv/bat_v_elp.h
@@ -25,6 +25,8 @@ struct work_struct;
int batadv_v_elp_iface_enable(struct batadv_hard_iface *hard_iface);
void batadv_v_elp_iface_disable(struct batadv_hard_iface *hard_iface);
+void batadv_v_elp_iface_activate(struct batadv_hard_iface *primary_iface,
+ struct batadv_hard_iface *hard_iface);
void batadv_v_elp_primary_iface_set(struct batadv_hard_iface *primary_iface);
int batadv_v_elp_packet_recv(struct sk_buff *skb,
struct batadv_hard_iface *if_incoming);