diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-26 21:04:18 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-26 21:04:18 +0200 |
commit | 2d5b999236c20d293006af0b4d94af7ae04dd2a7 (patch) | |
tree | f96191efce28ed47f59d4c1301f7a0cd6fd19ab4 /proto | |
parent | 216fd83c4b213ea3774d2c536ae089ea1e81b443 (diff) | |
download | bird-2d5b999236c20d293006af0b4d94af7ae04dd2a7.tar bird-2d5b999236c20d293006af0b4d94af7ae04dd2a7.zip |
Import control implemented.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/ospf.c | 13 | ||||
-rw-r--r-- | proto/ospf/ospf.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 2cbd964..1714992 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -67,6 +67,7 @@ ospf_init(struct proto_config *c) p->if_notify = NULL; init_list(&(po->iface_list)); init_list(&(po->area_list)); + p->import_control = ospf_import_control; return p; } @@ -116,6 +117,18 @@ ospf_postconfig(struct proto_config *c) DBG( " OSPF: postconfig\n" ); } +int +ospf_import_control(struct proto *p, rte **new, ea_list **attrs, struct linpool *pool) +{ + int i; + rte *e=*new; + struct proto_ospf *po=(struct proto_ospf *)p; + + if(p==e->attrs->proto) return -1; + + return 0; +} + struct protocol proto_ospf = { name: "OSPF", template: "ospf%d", diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 8645e71..c7b48d0 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -351,7 +351,7 @@ static void ospf_preconfig(struct protocol *p, struct config *c); static void ospf_postconfig(struct proto_config *c); static int ospf_rte_better(struct rte *new, struct rte *old); static int ospf_rte_same(struct rte *new, struct rte *old); - +int ospf_import_control(struct proto *p, rte **new, ea_list **attrs, struct linpool *pool); #include "proto/ospf/hello.h" #include "proto/ospf/packet.h" |