From ef2c708dfac4c8b4b5ab0ed8b71842da5c7ab3d7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 9 Apr 2000 22:05:02 +0000 Subject: More BGP progress... For Pavel: You can use bgp_path_prepend() for prepending AS numbers to AS paths. --- proto/bgp/bgp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'proto/bgp/bgp.c') diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index f325aa30..11729db4 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -28,12 +28,6 @@ static char *bgp_state_names[] = { "Idle", "Connect", "Active", "OpenSent", "Ope static void bgp_connect(struct bgp_proto *p); static void bgp_setup_sk(struct bgp_proto *p, struct bgp_conn *conn, sock *s); -static void -bgp_rt_notify(struct proto *P, net *n, rte *new, rte *old, ea_list *tmpa) -{ - DBG("BGP: Got route %I/%d\n", n->n.prefix, n->n.pxlen); -} - static struct proto * bgp_init(struct proto_config *C) { @@ -42,6 +36,8 @@ bgp_init(struct proto_config *C) struct bgp_proto *p = (struct bgp_proto *) P; P->rt_notify = bgp_rt_notify; + P->rte_better = bgp_rte_better; + P->import_control = bgp_import_control; p->cf = c; p->local_as = c->local_as; p->remote_as = c->remote_as; -- cgit v1.2.3