Skip to content

Commit

Permalink
batman-adv: init neigh node last seen field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Lindner authored and Antonio Quartulli committed Apr 24, 2016
1 parent c782966 commit e48474e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/batman-adv/originator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e48474e

Please sign in to comment.