File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird2 / sysdep / bsd / krt-sock.Y
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 16:03:56 2019 UTC (5 years, 5 months ago) by misho
Branches: bird2, MAIN
CVS tags: v2_0_7p0, HEAD
bird2 ver 2.0.7

    1: /*
    2:  *	BIRD -- BSD Kernel Syncer Configuration
    3:  *
    4:  *	(c) 1999--2000 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: CF_DECLS
   12: 
   13: CF_KEYWORDS(KERNEL, TABLE)
   14: 
   15: CF_GRAMMAR
   16: 
   17: kern_proto: kern_proto kern_sys_item ';' ;
   18: 
   19: kern_sys_item:
   20:    KERNEL TABLE expr {
   21: 	if ($3 && (krt_max_tables == 1))
   22: 	  cf_error("Multiple kernel routing tables not supported");
   23: 	if ($3 >= krt_max_tables)
   24: 	  cf_error("Kernel table id must be in range 0-%u", krt_max_tables - 1);
   25: 
   26: 	THIS_KRT->sys.table_id = $3;
   27:    }
   28:  ;
   29: 
   30: CF_CODE
   31: 
   32: CF_END

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>