Run subnet-up/down scripts for local MAC addresses as well.
This commit is contained in:
		
							parent
							
								
									5d194b9f87
								
							
						
					
					
						commit
						469fa318bc
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -188,6 +188,7 @@ static void learn_mac(mac_t *address) { | |||
| 		subnet->net.mac.address = *address; | ||||
| 		subnet->weight = 10; | ||||
| 		subnet_add(myself, subnet); | ||||
| 		subnet_update(myself, subnet, true); | ||||
| 
 | ||||
| 		/* And tell all other tinc daemons it's our MAC */ | ||||
| 
 | ||||
|  | @ -223,6 +224,7 @@ void age_subnets(void) { | |||
| 					send_del_subnet(c, s); | ||||
| 			} | ||||
| 
 | ||||
| 			subnet_update(myself, s, false); | ||||
| 			subnet_del(myself, s); | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue