2016-05-27 00:40:27 +00:00
|
|
|
/*
|
2018-03-03 12:08:38 +00:00
|
|
|
* BIRD -- UNIX Kernel Multicast Routing Configuration
|
2016-05-27 00:40:27 +00:00
|
|
|
*
|
|
|
|
* (c) 2016 Ondrej Hlavaty <aearsis@eideo.cz>
|
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
CF_HDR
|
|
|
|
|
|
|
|
#include "sysdep/unix/mkrt.h"
|
|
|
|
|
|
|
|
CF_DEFINES
|
|
|
|
|
2018-03-03 12:08:38 +00:00
|
|
|
#define THIS_MKRT ((struct mkrt_config *) this_proto)
|
|
|
|
|
2016-05-27 00:40:27 +00:00
|
|
|
CF_DECLS
|
|
|
|
|
|
|
|
CF_KEYWORDS(MKERNEL)
|
|
|
|
|
|
|
|
CF_GRAMMAR
|
|
|
|
|
|
|
|
/* Kernel interface protocol */
|
|
|
|
|
2018-03-03 12:08:38 +00:00
|
|
|
CF_ADDTO(proto, mkrt_proto '}')
|
2016-05-27 00:40:27 +00:00
|
|
|
|
2018-03-03 12:08:38 +00:00
|
|
|
mkrt_proto_start: proto_start MKERNEL { this_proto = mkrt_init_config($1); }
|
2016-05-27 00:40:27 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
mkrt_proto:
|
|
|
|
mkrt_proto_start proto_name '{'
|
|
|
|
| mkrt_proto mkrt_proto_item ';'
|
|
|
|
|
|
|
|
mkrt_proto_item:
|
|
|
|
proto_item
|
2018-03-03 12:08:38 +00:00
|
|
|
| proto_channel { this_proto->net_type = $1->net_type; }
|
2016-05-27 00:40:27 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
CF_CODE
|
|
|
|
|
|
|
|
CF_END
|