document tun assignment

This commit is contained in:
Nikos Mavrogiannopoulos
2015-04-16 13:44:55 +03:00
parent 12075284bf
commit 1797f23ed1
+4
View File
@@ -105,6 +105,10 @@ struct ip_lease_st t;
void steal_ip_leases(struct proc_st* proc, struct proc_st *thief)
{
/* here we reset the old tun device, and assign the old addresses
* to a new device. We cannot re-use the old device because the
* fd is only available to the worker process and not here (main)
*/
reset_tun(proc);
thief->ipv4 = talloc_move(thief, &proc->ipv4);