1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

network/neighbor: skip requesting neighbor if it is already requested

This commit is contained in:
Yu Watanabe 2024-09-02 13:03:09 +09:00
parent 541d0ed20a
commit 4bdc3d85ae

View File

@ -343,6 +343,9 @@ static int link_request_neighbor(Link *link, const Neighbor *neighbor) {
return 0;
}
if (neighbor_get_request(link, neighbor, NULL) >= 0)
return 0; /* already requested, skipping. */
r = neighbor_dup(neighbor, &tmp);
if (r < 0)
return r;