mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
BGP redesign
Integrated and extensible BGP with generalized AFI handling, support for IPv4+IPv6 AFI and unicast+multicast SAFI.
This commit is contained in:
12
lib/lists.c
12
lib/lists.c
@@ -158,3 +158,15 @@ add_tail_list(list *to, list *l)
|
||||
q->next = &to->tail_node;
|
||||
to->tail = q;
|
||||
}
|
||||
|
||||
LIST_INLINE uint
|
||||
list_length(list *l)
|
||||
{
|
||||
uint len = 0;
|
||||
node *n;
|
||||
|
||||
WALK_LIST(n, *l)
|
||||
len++;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user