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:
parent
541d0ed20a
commit
4bdc3d85ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user