mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Preexport: No route modification, no linpool needed
This commit is contained in:
		
				
					committed by
					
						 Maria Matejka
						Maria Matejka
					
				
			
			
				
	
			
			
			
						parent
						
							cee0cd148c
						
					
				
				
					commit
					d5a32563df
				
			| @@ -605,7 +605,7 @@ export_filter_(struct channel *c, rte *rt0, rte **rt_free, linpool *pool, int si | ||||
|   rt = rt0; | ||||
|   *rt_free = NULL; | ||||
|  | ||||
|   v = p->preexport ? p->preexport(p, &rt, pool) : 0; | ||||
|   v = p->preexport ? p->preexport(p, rt) : 0; | ||||
|   if (v < 0) | ||||
|     { | ||||
|       if (silent) | ||||
| @@ -1605,7 +1605,7 @@ rt_examine(rtable *t, net_addr *a, struct proto *p, const struct filter *filter) | ||||
|   rte_update_lock(); | ||||
|  | ||||
|   /* Rest is stripped down export_filter() */ | ||||
|   int v = p->preexport ? p->preexport(p, &rt, rte_update_pool) : 0; | ||||
|   int v = p->preexport ? p->preexport(p, rt) : 0; | ||||
|   if (v == RIC_PROCESS) | ||||
|   { | ||||
|     rte_make_tmp_attrs(&rt, rte_update_pool, NULL); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user