summaryrefslogtreecommitdiff
path: root/proto/static/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-05 21:38:22 +0000
committerMartin Mares <mj@ucw.cz>1999-02-05 21:38:22 +0000
commite9e3dc265971fbf985c5df09cb1d98494c386581 (patch)
tree1ffb35e0025ff9eee1b325d2deaf2ccec418a08d /proto/static/config.Y
parent31b3e1bbf5bc823ec5cf6d88931132f00e6c52b9 (diff)
Modified static router to use new interface.
Diffstat (limited to 'proto/static/config.Y')
-rw-r--r--proto/static/config.Y10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/static/config.Y b/proto/static/config.Y
index ff506511..df9e55b3 100644
--- a/proto/static/config.Y
+++ b/proto/static/config.Y
@@ -1,7 +1,7 @@
/*
* BIRD -- Static Protocol Configuration
*
- * (c) 1998 Martin Mares <mj@ucw.cz>
+ * (c) 1998--1999 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -21,8 +21,8 @@ CF_GRAMMAR
CF_ADDTO(proto, static_proto '}')
static_proto_start: proto_start STATIC {
- this_proto = proto_new(&proto_static, sizeof(struct static_proto));
- static_init_instance((struct static_proto *) this_proto);
+ this_proto = proto_config_new(&proto_static, sizeof(struct static_config));
+ static_init_config((struct static_config *) this_proto);
}
;
@@ -34,7 +34,7 @@ static_proto:
stat_route0: ROUTE IPA pxlen {
this_srt = cfg_allocz(sizeof(struct static_route));
- add_tail(&((struct static_proto *) this_proto)->other_routes, &this_srt->n);
+ add_tail(&((struct static_config *) this_proto)->other_routes, &this_srt->n);
if (!ip_is_prefix($2, $3)) cf_error("Invalid network prefix: %I/%d", $2, $3);
this_srt->net = $2;
this_srt->masklen = $3;
@@ -50,7 +50,7 @@ stat_route:
this_srt->dest = RTD_DEVICE;
this_srt->if_name = $3;
rem_node(&this_srt->n);
- add_tail(&((struct static_proto *) this_proto)->iface_routes, &this_srt->n);
+ add_tail(&((struct static_config *) this_proto)->iface_routes, &this_srt->n);
}
| stat_route0 DROP { this_srt->dest = RTD_BLACKHOLE; }
| stat_route0 REJECT { this_srt->dest = RTD_UNREACHABLE; }