summaryrefslogtreecommitdiffstats
path: root/nest/attrs.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-10-26 22:45:09 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-10-26 22:45:09 +0100
commit4847a894bf7d4852325c3f1ea4bb4890054a1f66 (patch)
tree46d0f400b9e6fc3dfaf64d7058c473e44501ddc1 /nest/attrs.h
parentd51aa2819005a03e4cfb6f62333be6ccadfb3c06 (diff)
downloadbird-4847a894bf7d4852325c3f1ea4bb4890054a1f66.tar
bird-4847a894bf7d4852325c3f1ea4bb4890054a1f66.zip
Implementation of route reflection for BGP
Diffstat (limited to 'nest/attrs.h')
-rw-r--r--nest/attrs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/attrs.h b/nest/attrs.h
index f63f2e4..aaa5f4a 100644
--- a/nest/attrs.h
+++ b/nest/attrs.h
@@ -47,4 +47,7 @@ struct adata *int_set_add(struct linpool *pool, struct adata *list, u32 val);
int int_set_contains(struct adata *list, u32 val);
struct adata *int_set_del(struct linpool *pool, struct adata *list, u32 val);
+static inline int int_set_get_size(struct adata *list)
+{ return list->length / 4; }
+
#endif