mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Separated `official protocol names' used in status dumps from name templates
used for automatic generation of instance names. protocol->name is the official name protocol->template is the name template (usually "name%d"), should be all lowercase. Updated all protocols to define the templates, checked that their configuration grammar includes proto_name which generates the name and interns it in the symbol table.
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
/*
 | 
			
		||||
 *	BIRD -- UNIX Kernel Syncer Configuration
 | 
			
		||||
 *
 | 
			
		||||
 *	(c) 1998--1999 Martin Mares <mj@ucw.cz>
 | 
			
		||||
 *	(c) 1998--2000 Martin Mares <mj@ucw.cz>
 | 
			
		||||
 *
 | 
			
		||||
 *	Can be freely distributed and used under the terms of the GNU GPL.
 | 
			
		||||
 */
 | 
			
		||||
@@ -70,7 +70,7 @@ kif_proto_start: proto_start DEVICE {
 | 
			
		||||
   }
 | 
			
		||||
 ;
 | 
			
		||||
 | 
			
		||||
CF_ADDTO(kif_proto, kif_proto_start '{')
 | 
			
		||||
CF_ADDTO(kif_proto, kif_proto_start proto_name '{')
 | 
			
		||||
CF_ADDTO(kif_proto, kif_proto proto_item ';')
 | 
			
		||||
CF_ADDTO(kif_proto, kif_proto kif_item ';')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user