diff options
author | claudio <claudio@openbsd.org> | 2018-09-20 11:45:59 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2018-09-20 11:45:59 +0000 |
commit | 59e404fb979795fbdc6f778dd6c595633ee334e6 (patch) | |
tree | 8a870c3aef12d8758096082db99969f65135fa58 /usr.sbin/bgpd/rde.h | |
parent | fix indentation (diff) | |
download | wireguard-openbsd-59e404fb979795fbdc6f778dd6c595633ee334e6.tar.xz wireguard-openbsd-59e404fb979795fbdc6f778dd6c595633ee334e6.zip |
Split up as_set into a set_table and an as_set. The first is what does
the lookup and will now also be used in roa-set tries. The as_set is glue
to add the name and dirty flag. Add an accessor to get the set data so
that the imsg sending and printing can be moved into the right places.
This is done mainly because roa-sets need similar but slightly different
versions and making the code more generic is the best way fixing this.
OK benno@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r-- | usr.sbin/bgpd/rde.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index 56425e0c9ca..74417487d6a 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.192 2018/09/20 11:06:04 benno Exp $ */ +/* $OpenBSD: rde.h,v 1.193 2018/09/20 11:45:59 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and @@ -586,7 +586,7 @@ int up_dump_mp_reach(u_char *, u_int16_t *, struct rde_peer *, int trie_add(struct trie_head *, struct bgpd_addr *, u_int8_t, u_int8_t, u_int8_t); int trie_roa_add(struct trie_head *, struct bgpd_addr *, u_int8_t, - struct as_set *); + struct set_table *); void trie_free(struct trie_head *); int trie_match(struct trie_head *, struct bgpd_addr *, u_int8_t, int); int trie_roa_check(struct trie_head *, struct bgpd_addr *, u_int8_t, |