summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-17 11:37:31 +0200
committerMartin Mares <mj@ucw.cz>2000-04-17 11:37:31 +0200
commitf421cfdd80cfce7d1ec4759c603e47071eb028f8 (patch)
treedfc62ecbdcd9e60fb6f978e1a17303a35e217a1d /proto/bgp/bgp.h
parentc0668f36967ce651e452a476b786b7604038a556 (diff)
downloadbird-f421cfdd80cfce7d1ec4759c603e47071eb028f8.tar
bird-f421cfdd80cfce7d1ec4759c603e47071eb028f8.zip
Sending of update messages works!
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index 9ee5b41..0f84c3b 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -68,8 +68,8 @@ struct bgp_prefix {
};
struct bgp_bucket {
- struct bgp_bucket *hash_next, *hash_prev; /* Node in bucket hash table */
node send_node; /* Node in send queue */
+ struct bgp_bucket *hash_next, *hash_prev; /* Node in bucket hash table */
unsigned hash; /* Hash over extended attributes */
list prefixes; /* Prefixes in this buckets */
ea_list eattrs[0]; /* Per-bucket extended attributes */
@@ -97,6 +97,8 @@ 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 *);
void bgp_attr_init(struct bgp_proto *);
+byte *bgp_encode_attrs(byte *w, struct bgp_bucket *buck);
+void bgp_free_bucket(struct bgp_proto *p, struct bgp_bucket *buck);
/* packets.c */