uplink config: Connect uplinks in the order defined in the config file
(instead of the reverse order)
This commit is contained in:
parent
00ee1419f6
commit
4d90d46894
10
src/config.c
10
src/config.c
|
|
@ -650,10 +650,12 @@ int do_uplink(struct uplink_config_t **lq, int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
/* put in the list */
|
||||
l->next = *lq;
|
||||
if (l->next)
|
||||
l->next->prevp = &l->next;
|
||||
/* put in the end of the list */
|
||||
while (*lq)
|
||||
lq = &(*lq)->next;
|
||||
|
||||
l->prevp = lq;
|
||||
l->next = NULL;
|
||||
*lq = l;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue