]> git.ozlabs.org Git - ppp.git/commitdiff
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)
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>

No differences found