From 08571b20598c58877e1565403d970efc2b90dba6 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 15 Oct 2023 16:04:36 +0200 Subject: ASPA: basic data structures and Static protocol support --- nest/attrs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nest/attrs.h') diff --git a/nest/attrs.h b/nest/attrs.h index aee3468b..8b13e7a4 100644 --- a/nest/attrs.h +++ b/nest/attrs.h @@ -206,8 +206,13 @@ static inline int lc_match(const u32 *l, int i, lcomm v) static inline u32 *lc_copy(u32 *dst, const u32 *src) { memcpy(dst, src, LCOMM_LENGTH); return dst + 3; } +enum isf_way { + ISF_NUMBERS, + ISF_COMMUNITY_LIST, + ISF_ROUTER_ID, +}; -int int_set_format(const struct adata *set, int way, int from, byte *buf, uint size); +int int_set_format(const struct adata *set, enum isf_way way, int from, byte *buf, uint size); int ec_format(byte *buf, u64 ec); int ec_set_format(const struct adata *set, int from, byte *buf, uint size); int lc_format(byte *buf, lcomm lc); -- cgit v1.2.3