From e9e3dc265971fbf985c5df09cb1d98494c386581 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 5 Feb 1999 21:38:22 +0000 Subject: Modified static router to use new interface. --- proto/static/config.Y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'proto/static/config.Y') diff --git a/proto/static/config.Y b/proto/static/config.Y index ff50651..df9e55b 100644 --- a/proto/static/config.Y +++ b/proto/static/config.Y @@ -1,7 +1,7 @@ /* * BIRD -- Static Protocol Configuration * - * (c) 1998 Martin Mares + * (c) 1998--1999 Martin Mares * * 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; } -- cgit v1.2.3