path->entries[old_len + i] = entry;
entry->peer = peers[i];
entry->path = path;
+ }
+ for (i=num_peers-1;i >= 0;i--)
+ {
+ struct CadetPeerPathEntry *entry = path->entries[old_len + i];
+
GCP_path_entry_add (entry->peer,
entry,
old_len + i);
path->entries[i] = entry;
entry->peer = cpath[i];
entry->path = path;
+ }
+ for (i=path->entries_length-1;i>=0;i--)
+ {
+ struct CadetPeerPathEntry *entry = path->entries[i];
+
GCP_path_entry_add (entry->peer,
entry,
i);
path->entries[i] = entry;
entry->peer = cpath[i];
entry->path = path;
+ }
+ for (int i=path_length-1;i>=0;i--)
+ {
+ struct CadetPeerPathEntry *entry = path->entries[i];
+
GCP_path_entry_add (entry->peer,
entry,
i);