diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-10 00:05:02 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-10 00:05:02 +0200 |
commit | ef2c708dfac4c8b4b5ab0ed8b71842da5c7ab3d7 (patch) | |
tree | 8853f4f400215698fcea03f36758204909e8a9e3 /proto/bgp/bgp.c | |
parent | d3feceff105fbcee7a9976812156aea7517c44e6 (diff) | |
download | bird-ef2c708dfac4c8b4b5ab0ed8b71842da5c7ab3d7.tar bird-ef2c708dfac4c8b4b5ab0ed8b71842da5c7ab3d7.zip |
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.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index f325aa3..11729db 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; |