From cf3d6470d7c8d401b162516ed7446c1d3866d5d3 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 4 May 2000 20:02:56 +0000 Subject: IPv6 BGP support finished. Also simplified the BGP stuff a bit. --- proto/bgp/bgp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proto/bgp/bgp.h') diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 37f29792..38baccdb 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -115,13 +115,14 @@ void bgp_close_conn(struct bgp_conn *c); /* attrs.c */ +byte *bgp_attach_attr(struct ea_list **to, struct linpool *, unsigned attr, unsigned val); struct rta *bgp_decode_attrs(struct bgp_conn *conn, byte *a, unsigned int len, struct linpool *pool, int mandatory); int bgp_get_attr(struct eattr *e, byte *buf); 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); +unsigned int bgp_encode_attrs(byte *w, struct ea_list *attrs, int remains); void bgp_free_bucket(struct bgp_proto *p, struct bgp_bucket *buck); /* packets.c */ -- cgit v1.2.3