Commit abd4dd4c authored by Armin Brauns's avatar Armin Brauns Committed by Stephanos Ioannidis
Browse files

net: ipv6_nbr: don't count incoming Neighbour Advertisements in sent stats



This caused outgoing MAC address lookups to count as one received and two
sent Neighbour Discovery packets, when it's really one sent Neighbour
Solicitation and one received Neighbour Advertisement.

Signed-off-by: default avatarArmin Brauns <armin.brauns@embedded-solutions.at>
parent 5d7051f1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1815,8 +1815,6 @@ static enum net_verdict handle_na_input(struct net_pkt *pkt,
		goto drop;
	}

	net_stats_update_ipv6_nd_sent(net_pkt_iface(pkt));

	net_pkt_unref(pkt);

	return NET_OK;