pppd: Do not call update_link_stats() for every LcpSendEchoRequest() call
authorPali Rohár <pali@kernel.org>
Tue, 1 Sep 2020 18:53:30 +0000 (20:53 +0200)
committerPali Rohár <pali@kernel.org>
Tue, 1 Sep 2020 18:53:30 +0000 (20:53 +0200)
commite7ee3ad1743d34cb6fdf0773e6a73e9d8bf15216
treee23d983834587d1b37b4a40563a0efa492b1fa0b
parent045169401601639b9163e1df00f868a0a49131ce
pppd: Do not call update_link_stats() for every LcpSendEchoRequest() call

Function update_link_stats() is doing more than reading number of received
bytes, e.g. it changes state of link_stats_valid.

This change replace update_link_stats() by get_ppp_stats() in
LcpSendEchoRequest() function to avoid any side effects.

Signed-off-by: Pali Rohár <pali@kernel.org>
pppd/lcp.c