summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpd/mrt.h
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-06-05 17:36:49 +0000
committerclaudio <claudio@openbsd.org>2009-06-05 17:36:49 +0000
commit308f58e81276b52b486bbd8b56d1825b7d7fda7b (patch)
tree556d1d705f11dc2981761df6f6949b399217940e /usr.sbin/bgpd/mrt.h
parentmalloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR; (diff)
downloadwireguard-openbsd-308f58e81276b52b486bbd8b56d1825b7d7fda7b.tar.xz
wireguard-openbsd-308f58e81276b52b486bbd8b56d1825b7d7fda7b.zip
Change the way we do mrt dumps in the rde (from the retarded only one dump
possible to as many as you like). The mrt dumps are now done with the same tree walking code as the control messages. Makes the RDE respond a bit faster and use less memory while dumping.
Diffstat (limited to 'usr.sbin/bgpd/mrt.h')
-rw-r--r--usr.sbin/bgpd/mrt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/mrt.h b/usr.sbin/bgpd/mrt.h
index c19a983f516..136d84cd814 100644
--- a/usr.sbin/bgpd/mrt.h
+++ b/usr.sbin/bgpd/mrt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.h,v 1.21 2009/06/04 22:08:19 claudio Exp $ */
+/* $OpenBSD: mrt.h,v 1.22 2009/06/05 17:36:49 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -277,6 +277,7 @@ struct mrt {
u_int32_t peer_id;
u_int32_t group_id;
enum mrt_type type;
+ u_int16_t seqnum;
};
struct mrt_config {
@@ -302,6 +303,7 @@ void mrt_dump_state(struct mrt *, u_int16_t, u_int16_t,
struct peer *);
void mrt_clear_seq(void);
void mrt_dump_upcall(struct rib_entry *, void *);
+void mrt_dump_done(void *);
void mrt_write(struct mrt *);
void mrt_clean(struct mrt *);
void mrt_init(struct imsgbuf *, struct imsgbuf *);