diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-30 18:42:06 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-30 18:42:06 +0000 |
commit | 8906a1b1a2a90d50a2e84395d6e36ed845c4a128 (patch) | |
tree | 4aabd31dd63c04e0e8254d41969b98b4692d693d /usr.sbin/bgpd/rde_rib.c | |
parent | f25417ce4a000d1a59e8c6642547655ac8d3321c (diff) |
remove MAX_PREFIX_PER_AS debug gunk, claudio djm ok
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 14 |
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; |