diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-05 17:36:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-05 17:36:50 +0000 |
commit | 7475d02a4ac94ec669fdcc6943fc049ec1634675 (patch) | |
tree | f9b5d77659c0455b995cf18f09bbaf8f2964f67f /usr.sbin/bgpd/mrt.h | |
parent | f4be2667e089ea7c32a5a0dbf8b3ebc144d09d24 (diff) |
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.h | 4 |
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 *); |