diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-11-15 16:24:39 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-11-15 16:24:39 +0100 |
commit | 261816b0d4f3d4549a4402b95541b82fc7f10a4b (patch) | |
tree | 45fe0676d36e099c02cb44202bddd0bba6875da2 /nest/attrs.h | |
parent | c8cafc8ebb5320ac7c6117c17e6460036f0fdf62 (diff) |
BGP: Cluster list item should be prepended
Commit 3c09af41... changed behavior of int_set_add() from prepend to
append, which makes more sense for community list, but prepend must be
used for cluster list. Add int_set_prepend() and use it in cluster list
handling code.
Diffstat (limited to 'nest/attrs.h')
-rw-r--r-- | nest/attrs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/attrs.h b/nest/attrs.h index 548d71a9..a34e64d3 100644 --- a/nest/attrs.h +++ b/nest/attrs.h @@ -132,6 +132,7 @@ int lc_set_format(struct adata *set, int from, byte *buf, uint size); int int_set_contains(struct adata *list, u32 val); int ec_set_contains(struct adata *list, u64 val); int lc_set_contains(struct adata *list, lcomm val); +struct adata *int_set_prepend(struct linpool *pool, struct adata *list, u32 val); struct adata *int_set_add(struct linpool *pool, struct adata *list, u32 val); struct adata *ec_set_add(struct linpool *pool, struct adata *list, u64 val); struct adata *lc_set_add(struct linpool *pool, struct adata *list, lcomm val); |