diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-13 15:57:44 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-13 15:57:44 +0100 |
commit | d807ea087f8d60e25eaef8c10168a40ca6545c57 (patch) | |
tree | 60ac512afd42488b277a6fe7a527e71ccfb92490 /nest/a-set.c | |
parent | 3e7923507b40b42c80dc621aff9d896106bae8c7 (diff) |
BGP: Fix non-transitive ext communities
Diffstat (limited to 'nest/a-set.c')
-rw-r--r-- | nest/a-set.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nest/a-set.c b/nest/a-set.c index a2fb6953..048e522d 100644 --- a/nest/a-set.c +++ b/nest/a-set.c @@ -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) |