summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-10 12:39:51 +0000
committerMartin Mares <mj@ucw.cz>2000-04-10 12:39:51 +0000
commitae8f5584990ce3bfb5b0bec2f7a1c052e45860df (patch)
tree1ba4bcf4c45c6e011ae0a9b9bbdcf31b7652ac35 /proto/bgp/bgp.h
parent6f57dcc07cdf54133bd57aeaec7446f59f2c91cd (diff)
Implemented outgoing attribute cache.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index 6ae594a6..78bb426f 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -53,6 +53,8 @@ struct bgp_proto {
ip_addr next_hop; /* Either the peer or multihop_via */
struct neighbor *neigh; /* Neighbor entry corresponding to next_hop */
ip_addr local_addr; /* Address of the local end of the link to next_hop */
+ struct bgp_bucket **bucket_table; /* Hash table of attribute buckets */
+ unsigned int hash_size, hash_count, hash_limit;
};
#define BGP_PORT 179
@@ -77,6 +79,7 @@ int bgp_rte_better(struct rte *, struct rte *);
void bgp_rt_notify(struct proto *, struct network *, struct rte *, struct rte *, struct ea_list *);
int bgp_import_control(struct proto *, struct rte **, struct ea_list **, struct linpool *);
struct ea_list *bgp_path_prepend(struct linpool *pool, struct eattr *a, struct ea_list *old, int as);
+void bgp_attr_init(struct bgp_proto *);
/* packets.c */