diff options
author | Maria Matejka <mq@ucw.cz> | 2023-10-15 16:04:36 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2024-03-25 14:15:30 +0100 |
commit | 08571b20598c58877e1565403d970efc2b90dba6 (patch) | |
tree | 0471beb4512650ff31f179ba375757f4f9400e01 /nest/attrs.h | |
parent | b95dc8f29f18eb177f91fdc4bf0716fac9b15366 (diff) |
ASPA: basic data structures and Static protocol support
Diffstat (limited to 'nest/attrs.h')
-rw-r--r-- | nest/attrs.h | 7 |
1 files changed, 6 insertions, 1 deletions
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); |