diff options
author | Sven Eckelmann <sven@narfation.org> | 2017-04-05 16:26:17 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-05-19 12:18:52 +0200 |
commit | 36d4d68cd658d914ef73ac845705c4a89e7d9e2f (patch) | |
tree | 49ce613d238cf29232de0fe030fe6670aaf75663 /net/batman-adv/main.c | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
batman-adv: Fix rx packet/bytes stats on local ARP reply
The stats are generated by batadv_interface_stats and must not be stored
directly in the net_device stats member variable. The batadv_priv
bat_counters information is assembled when ndo_get_stats is called. The
stats previously stored in net_device::stats is then overwritten.
The batman-adv counters must therefore be increased when an ARP packet is
answered locally via the distributed arp table.
Fixes: c384ea3ec930 ("batman-adv: Distributed ARP Table - add snooping functions for ARP messages")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/main.c')
0 files changed, 0 insertions, 0 deletions