summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_rib.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r--usr.sbin/bgpd/rde_rib.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 45366271b57..b829a93ca4f 100644
--- a/usr.sbin/bgpd/rde_rib.c
+++ b/usr.sbin/bgpd/rde_rib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_rib.c,v 1.43 2004/04/28 07:05:27 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.44 2004/04/30 18:42:05 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -63,13 +63,6 @@ struct rib_stats {
} ribstats;
#define RIB_STAT(x) (ribstats.x++)
-/*
- * Maximum number of prefixes we allow per prefix. The number should
- * not be too big and ensure only that the prefix count is properly
- * increased and decreased. Only useful if ENSURE is active.
- */
-#define MAX_PREFIX_PER_AS 1500
-
/* path specific functions */
static void path_link(struct rde_aspath *, struct rde_peer *);
@@ -383,8 +376,6 @@ prefix_move(struct rde_aspath *asp, struct prefix *p)
* no need to update the peer prefix count because we are only moving
* the prefix without changing the peer.
*/
- /* XXX for debugging */
- ENSURE(asp->prefix_cnt < MAX_PREFIX_PER_AS);
/*
* First kick the old prefix node out of the prefix list,
@@ -553,9 +544,6 @@ prefix_link(struct prefix *pref, struct pt_entry *pte, struct rde_aspath *asp)
asp->prefix_cnt++;
asp->peer->prefix_cnt++;
- /* XXX for debugging */
- ENSURE(asp->prefix_cnt < MAX_PREFIX_PER_AS);
-
pref->aspath = asp;
pref->prefix = pte;
pref->peer = asp->peer;