summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-09 22:05:02 +0000
committerMartin Mares <mj@ucw.cz>2000-04-09 22:05:02 +0000
commitef2c708dfac4c8b4b5ab0ed8b71842da5c7ab3d7 (patch)
tree8853f4f400215698fcea03f36758204909e8a9e3 /proto/bgp/bgp.c
parentd3feceff105fbcee7a9976812156aea7517c44e6 (diff)
More BGP progress...
For Pavel: You can use bgp_path_prepend() for prepending AS numbers to AS paths.
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c8
1 files changed, 2 insertions, 6 deletions
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;