]> git.karo-electronics.de Git - linux-beck.git/commitdiff
batman-adv: init neigh node last seen field
authorMarek Lindner <mareklindner@neomailbox.ch>
Fri, 11 Mar 2016 15:01:09 +0000 (16:01 +0100)
committerAntonio Quartulli <a@unstable.cc>
Sun, 24 Apr 2016 07:39:19 +0000 (15:39 +0800)
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
[sven@narfation.org: fix conflicts with current version]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/originator.c

index e4cbb0753e37ff6681a20e8912df1f4ad1e74a05..d52f67a0c057230b4b1dfa66d43594d7f30625ee 100644 (file)
@@ -663,6 +663,7 @@ batadv_neigh_node_new(struct batadv_orig_node *orig_node,
        ether_addr_copy(neigh_node->addr, neigh_addr);
        neigh_node->if_incoming = hard_iface;
        neigh_node->orig_node = orig_node;
+       neigh_node->last_seen = jiffies;
 
        /* extra reference for return */
        kref_init(&neigh_node->refcount);