summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-01-17 16:09:02 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-01-17 16:09:02 +0000
commit187fbf2b2ec22ed8659413b1c509f8ffcbae01e0 (patch)
tree3ed1547bf1ee5ec3066a36e343be6094a7fd1d9d /usr.sbin/bgpd/rde.h
parentf26646dff8dcbdeb21777428b2f798af4c4689ac (diff)
Add the needed logic to load the ASPA table from the rtr process into the
RDE. The actual reload logic is missing to keep the diff small. OK tb@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r--usr.sbin/bgpd/rde.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index 85f7235dcd7..c6a192d68fe 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.278 2023/01/12 17:35:51 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.279 2023/01/17 16:09:01 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -113,6 +113,8 @@ struct rde_peer {
uint8_t flags;
};
+struct rde_aspa;
+
#define AS_SET 1
#define AS_SEQUENCE 2
#define AS_CONFED_SEQUENCE 3
@@ -731,11 +733,17 @@ int up_dump_attrnlri(u_char *, int, struct rde_peer *);
int up_dump_mp_reach(u_char *, int, struct rde_peer *, uint8_t);
/* rde_aspa.c */
+uint8_t aspa_validation(struct rde_aspa *, enum role, struct aspath *,
+ uint8_t);
struct rde_aspa *aspa_table_prep(uint32_t, size_t);
void aspa_add_set(struct rde_aspa *, uint32_t, const uint32_t *,
uint32_t, const uint32_t *);
void aspa_table_free(struct rde_aspa *);
-uint8_t aspa_validation(struct rde_aspa *, enum role, struct aspath *,
- uint8_t);
+void aspa_table_stats(const struct rde_aspa *,
+ struct ctl_show_set *);
+int aspa_table_equal(const struct rde_aspa *,
+ const struct rde_aspa *);
+void aspa_table_unchanged(struct rde_aspa *,
+ const struct rde_aspa *);
#endif /* __RDE_H__ */