0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 10:11:53 +00:00
bird/sysdep/unix/mkrt.Y

42 lines
673 B
Plaintext
Raw Normal View History

2016-05-27 00:40:27 +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
#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 */
CF_ADDTO(proto, mkrt_proto '}')
2016-05-27 00:40:27 +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
| proto_channel { this_proto->net_type = $1->net_type; }
2016-05-27 00:40:27 +00:00
;
CF_CODE
CF_END