mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Store protocol config size inside protocol structure
Make proto_config_new() use this info instead of supplied size. Thanks to Alexander V. Chernikov for the patch.
This commit is contained in:
		@@ -1457,6 +1457,7 @@ struct protocol proto_ospf = {
 | 
			
		||||
  .template =		"ospf%d",
 | 
			
		||||
  .attr_class =		EAP_OSPF,
 | 
			
		||||
  .preference =		DEF_PREF_OSPF,
 | 
			
		||||
  .config_size =	sizeof(struct ospf_config),
 | 
			
		||||
  .init =		ospf_init,
 | 
			
		||||
  .dump =		ospf_dump,
 | 
			
		||||
  .start =		ospf_start,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user