diff options
author | Marek Lindner <mareklindner@neomailbox.ch> | 2016-05-07 19:54:17 +0800 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-05-18 11:49:44 +0800 |
commit | ebe24cea95ab969f76f2922032f6c390fdc816f2 (patch) | |
tree | 74a7b66238dd55bed64c3d3f7815c3642ddd7382 /net/batman-adv/bat_v_elp.h | |
parent | e123705e58bf171be8c6eb0902ebfb5d6ed255ad (diff) | |
download | blackbird-op-linux-ebe24cea95ab969f76f2922032f6c390fdc816f2.tar.gz blackbird-op-linux-ebe24cea95ab969f76f2922032f6c390fdc816f2.zip |
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.h | 2 |
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 e95f1bca0785..cc130b2d05e5 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); |