summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarek Lindner2016-03-11 16:01:09 +0100
committerAntonio Quartulli2016-04-24 09:39:19 +0200
commite48474ed8a217b7f80f2a42bc05352406a06cb67 (patch)
treebf4c9688ca213ccfca4c0e0b6276c22fce2f0301 /net
parentbatman-adv: Check skb size before using encapsulated ETH+VLAN header (diff)
downloadkernel-qcow2-linux-e48474ed8a217b7f80f2a42bc05352406a06cb67.tar.gz
kernel-qcow2-linux-e48474ed8a217b7f80f2a42bc05352406a06cb67.tar.xz
kernel-qcow2-linux-e48474ed8a217b7f80f2a42bc05352406a06cb67.zip
batman-adv: init neigh node last seen field
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>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/originator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c
index e4cbb0753e37..d52f67a0c057 100644
--- a/net/batman-adv/originator.c
+++ b/net/batman-adv/originator.c
@@ -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);