network: drop unnecessary call of ndisc_vacuum()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Oct 2022 05:17:13 +0000 (14:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Oct 2022 05:17:28 +0000 (14:17 +0900)
commit44085d63f04127cbd2f15c11e672de4d024d91b2
treeef795071eef5334be9855cc3d7196a8b8877ee19
parentc76691d708ac7fe13b7c4307c010d447fcbc3e9a
network: drop unnecessary call of ndisc_vacuum()

After the commit 773024685b37170395a11716f8e4ad99d3580455, DNS servers
or domains are dropped when their lifefime become zero. Hence, it is not
necessary to try to them when writing state file.

Of course, because of the accuracy of the timer event source or priority
of event sources, a possibility is introduced that a DNS server or domain
with zero lifetime is stored in the state file. However, such entry will
be dropped soon when the timer event source is triggered. Hence, that
should not cause any real issues.
src/network/networkd-ndisc.c
src/network/networkd-ndisc.h
src/network/networkd-state-file.c