Annotation of embedaddon/bird2/proto/pipe/config.Y, revision 1.1
1.1 ! misho 1: /*
! 2: * BIRD -- Table-to-Table Protocol Configuration
! 3: *
! 4: * (c) 1999 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 "proto/pipe/pipe.h"
! 12:
! 13: CF_DEFINES
! 14:
! 15: #define PIPE_CFG ((struct pipe_config *) this_proto)
! 16:
! 17: CF_DECLS
! 18:
! 19: CF_KEYWORDS(PIPE, PEER, TABLE)
! 20:
! 21: CF_GRAMMAR
! 22:
! 23: proto: pipe_proto '}' { this_channel = NULL; } ;
! 24:
! 25: pipe_proto_start: proto_start PIPE
! 26: {
! 27: this_proto = proto_config_new(&proto_pipe, $1);
! 28: }
! 29: proto_name
! 30: {
! 31: this_channel = proto_cf_main_channel(this_proto);
! 32: if (!this_channel) {
! 33: this_channel = channel_config_new(NULL, NULL, 0, this_proto);
! 34: this_channel->in_filter = FILTER_ACCEPT;
! 35: this_channel->out_filter = FILTER_ACCEPT;
! 36: }
! 37: };
! 38:
! 39: pipe_proto:
! 40: pipe_proto_start '{'
! 41: | pipe_proto proto_item ';'
! 42: | pipe_proto channel_item ';'
! 43: | pipe_proto PEER TABLE rtable ';' { PIPE_CFG->peer = $4; }
! 44: ;
! 45:
! 46: CF_CODE
! 47:
! 48: CF_END
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>