mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
BGP: Fix non-transitive ext communities
This commit is contained in:
@@ -536,6 +536,13 @@ ec_set_sort(struct linpool *pool, struct adata *src)
|
||||
return dst;
|
||||
}
|
||||
|
||||
void
|
||||
ec_set_sort_x(struct adata *set)
|
||||
{
|
||||
/* Sort in place */
|
||||
qsort(set->data, set->length / 8, 8, ec_set_cmp);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
lc_set_cmp(const void *X, const void *Y)
|
||||
|
@@ -197,4 +197,6 @@ struct adata *int_set_sort(struct linpool *pool, struct adata *src);
|
||||
struct adata *ec_set_sort(struct linpool *pool, struct adata *src);
|
||||
struct adata *lc_set_sort(struct linpool *pool, struct adata *src);
|
||||
|
||||
void ec_set_sort_x(struct adata *set); /* Sort in place */
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user