Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / unix / krt.Y @ 10d807d0

History | View | Annotate | Download (548 Bytes)

1
/*
2
 *	BIRD -- UNIX Kernel Syncer Configuration
3
 *
4
 *	(c) 1998 Martin Mares <mj@ucw.cz>
5
 *
6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8

    
9
CF_HDR
10

    
11
#include "lib/krt.h"
12

    
13
CF_DECLS
14

    
15
CF_KEYWORDS(KERNEL)
16

    
17
CF_GRAMMAR
18

    
19
/* Kernel protocol */
20

    
21
CF_ADDTO(proto, kern_proto '}')
22

    
23
kern_proto_start: proto_start KERNEL {
24
     if (!(this_proto = cf_krt)) cf_error("Kernel protocol already defined");
25
     cf_krt = NULL;
26
   }
27
 ;
28

    
29
CF_ADDTO(kern_proto, kern_proto_start '{')
30
CF_ADDTO(kern_proto, kern_proto proto_item ';')
31

    
32
CF_CODE
33

    
34
CF_END