remove=1 but also active=0.
syslog(LOG_NOTICE, "Try to re-establish outgoing connection in 5 seconds.");
}
syslog(LOG_NOTICE, "Try to re-establish outgoing connection in 5 seconds.");
}
cl->status.remove = 1;
cp
}
cl->status.remove = 1;
cp
}
cp
/* Exact match suggested by James B. MacLean */
for(p = conn_list; p != NULL; p = p->next)
cp
/* Exact match suggested by James B. MacLean */
for(p = conn_list; p != NULL; p = p->next)
- if((ip == p->vpn_ip) && p->active)
+ if((ip == p->vpn_ip) && p->status.active)
return p;
for(p = conn_list; p != NULL; p = p->next)
return p;
for(p = conn_list; p != NULL; p = p->next)
- if(((ip & p->vpn_mask) == (p->vpn_ip & p->vpn_mask)) && p->active)
+ if(((ip & p->vpn_mask) == (p->vpn_ip & p->vpn_mask)) && p->status.active)
return p;
cp
return NULL;
return p;
cp
return NULL;
conn_list_t *p;
cp
for(p = conn_list; p != NULL; p = p->next)
conn_list_t *p;
cp
for(p = conn_list; p != NULL; p = p->next)
- if(p->status.meta && p->active)
+ if(p->status.meta && p->status.active)
send_key_changed(p, myself);
cp
}
send_key_changed(p, myself);
cp
}
conn_list_t *p;
cp
for(p = conn_list; p != NULL; p = p->next)
conn_list_t *p;
cp
for(p = conn_list; p != NULL; p = p->next)
- if(p != new && p != source && p->status.meta && p->active)
+ if(p != new && p != source && p->status.meta && p->status.active)
function(p, new);
cp
return 0;
function(p, new);
cp
return 0;
conn_list_t *p;
cp
for(p = conn_list; p != NULL; p = p->next)
conn_list_t *p;
cp
for(p = conn_list; p != NULL; p = p->next)
- if(p != new && p->active)
+ if(p != new && p->status.active)
send_add_host(new, p);
cp
return 0;
send_add_host(new, p);
cp
return 0;
old connection that has timed out but we don't know it yet. Because our
conn_list entry is not active, lookup_conn will skip ourself. */
old connection that has timed out but we don't know it yet. Because our
conn_list entry is not active, lookup_conn will skip ourself. */
- if(old=lookup_conn(cl->vpn_ip))
+ while(old=lookup_conn(cl->vpn_ip))
terminate_connection(old);
cl->status.active = 1;
terminate_connection(old);
cl->status.active = 1;