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

This commit is contained in:
Yu Watanabe
2024-09-02 14:12:37 +09:00
parent 541d0ed20a
commit 4bdc3d85ae
+3
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;