mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
First attempt at protocol configuration (now done only for RIP).
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* BIRD -- RIP Configuration
|
||||
*
|
||||
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||
*/
|
||||
|
||||
CF_HDR
|
||||
|
||||
#include "proto/rip/rip.h"
|
||||
|
||||
CF_DECLS
|
||||
|
||||
CF_KEYWORDS(RIP)
|
||||
|
||||
CF_GRAMMAR
|
||||
|
||||
CF_ADDTO(proto, rip_proto '}')
|
||||
|
||||
rip_proto_start: proto_start RIP {
|
||||
this_proto = proto_new(&proto_rip, sizeof(struct rip_data));
|
||||
rip_init_instance(this_proto);
|
||||
}
|
||||
;
|
||||
|
||||
rip_proto:
|
||||
rip_proto_start proto_name '{'
|
||||
| rip_proto proto_item ';'
|
||||
;
|
||||
|
||||
CF_CODE
|
||||
|
||||
CF_END
|
||||
|
Reference in New Issue
Block a user