1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

ASPA: basic data structures and Static protocol support

This commit is contained in:
Maria Matejka
2023-10-15 16:04:36 +02:00
parent b95dc8f29f
commit 45a2e00509
14 changed files with 173 additions and 15 deletions

View File

@@ -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);