From 2ef9177a47e7137dd09b06a353a6e5f6e671c951 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 14 Nov 2010 05:49:56 +0100 Subject: Add multicast support to static protocol and generic route handling. --- proto/static/config.Y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/static/config.Y') diff --git a/proto/static/config.Y b/proto/static/config.Y index a7e5016..b089864 100644 --- a/proto/static/config.Y +++ b/proto/static/config.Y @@ -16,7 +16,7 @@ static struct static_route *this_srt; CF_DECLS -CF_KEYWORDS(STATIC, ROUTE, VIA, DROP, REJECT, PROHIBIT, PREFERENCE) +CF_KEYWORDS(STATIC, ROUTE, VIA, DROP, REJECT, PROHIBIT, PREFERENCE, MULTICAST) CF_GRAMMAR @@ -39,6 +39,7 @@ stat_route0: ROUTE prefix { add_tail(&((struct static_config *) this_proto)->other_routes, &this_srt->n); this_srt->net = $2.addr; this_srt->masklen = $2.len; + this_srt->cast = RTC_UNICAST; } ; @@ -56,6 +57,7 @@ stat_route: | stat_route0 DROP { this_srt->dest = RTD_BLACKHOLE; } | stat_route0 REJECT { this_srt->dest = RTD_UNREACHABLE; } | stat_route0 PROHIBIT { this_srt->dest = RTD_PROHIBIT; } + | stat_route MULTICAST { this_srt->cast = RTC_MULTICAST; } ; CF_CLI(SHOW STATIC, optsym, [], [[Show details of static protocol]]) -- cgit v1.2.3