summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-04-23 19:23:28 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-04-23 19:23:28 +0000
commit494f39a1befc308729799247c26849ad4c2c1a50 (patch)
tree9b51c476c22bd280b7fa15bf6dc1d678e75f679a /usr.sbin/bgpd/rde.h
parent9bac2bbde33a8f9b7e1d52e78e5db683f788aad9 (diff)
Rework the way we handle announced networks. Instead of two freak rde_peers
use one that is less freaky. Merge bgpctl and config networks into one tree. First step of a larger change in the RDE and this goes now in to allow to move forward.
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r--usr.sbin/bgpd/rde.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index e2709d4e513..78debe20f4b 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.105 2009/03/19 06:52:59 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.106 2009/04/23 19:23:27 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -164,6 +164,8 @@ LIST_HEAD(prefix_head, prefix);
#define F_ATTR_LINKED 0x20000
#define F_LOCAL 0x40000 /* Local-RIB */
#define F_ORIGINAL 0x80000 /* Adj-RIB-In */
+#define F_RIB_MASK (F_LOCAL | F_ORIGINAL)
+#define F_ANN_DYNAMIC 0x100000
#define ORIGIN_IGP 0
@@ -357,7 +359,7 @@ struct prefix *prefix_bypeer(struct pt_entry *, struct rde_peer *, u_int32_t);
void prefix_updateall(struct rde_aspath *, enum nexthop_state,
enum nexthop_state);
void prefix_destroy(struct prefix *);
-void prefix_network_clean(struct rde_peer *, time_t);
+void prefix_network_clean(struct rde_peer *, time_t, u_int32_t);
void nexthop_init(u_int32_t);
void nexthop_shutdown(void);