Lines Matching refs:path
115 * Called by SC on discovering a new path
118 rds_path_up(rds_path_t *path)
123 ASSERT(path != NULL);
126 RDS_VALIDATE_PATH(path);
131 while ((p) && ((p->lnode_ip != path->local.node_ipaddr) ||
132 (p->rnode_ip != path->remote.node_ipaddr))) {
143 p->lnode_ip = path->local.node_ipaddr;
144 p->rnode_ip = path->remote.node_ipaddr;
148 p1->libd_ip = path->local.ipaddr;
149 p1->ribd_ip = path->remote.ipaddr;
152 (void) strcpy(p1->lifname, path->local.ifname);
153 (void) strcpy(p1->rifname, path->remote.ifname);
168 p1->libd_ip = path->local.ipaddr;
169 p1->ribd_ip = path->remote.ipaddr;
174 (void) strcpy(p1->lifname, path->local.ifname);
175 (void) strcpy(p1->rifname, path->remote.ifname);
182 * Called by SC to delete a path
185 rds_path_down(rds_path_t *path)
190 ASSERT(path != NULL);
193 RDS_VALIDATE_PATH(path);
198 while ((p) && ((p->lnode_ip != path->local.node_ipaddr) ||
199 (p->rnode_ip != path->remote.node_ipaddr))) {
206 "(0x%x <-> 0x%x)", path->local.node_ipaddr,
207 path->remote.node_ipaddr);
213 while ((p1) && ((p1->libd_ip != path->local.ipaddr) ||
214 (p1->ribd_ip != path->remote.ipaddr))) {
221 "(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr);
233 /* this is the first path record */
243 /* remove the node record if there are no path records */
284 /* found a path */
290 * But next time, we want to use a different path record so move this
291 * path record to the end.
298 /* walk down to the last path record */
303 /* Attach the first path record to the end */