mirror of
https://github.com/systemd/systemd.git
synced 2025-09-06 05:44:41 +03:00
network/neighbor: skip requesting neighbor if it is already requested
This commit is contained in:
@@ -343,6 +343,9 @@ static int link_request_neighbor(Link *link, const Neighbor *neighbor) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (neighbor_get_request(link, neighbor, NULL) >= 0)
|
||||||
|
return 0; /* already requested, skipping. */
|
||||||
|
|
||||||
r = neighbor_dup(neighbor, &tmp);
|
r = neighbor_dup(neighbor, &tmp);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
Reference in New Issue
Block a user