X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/f402c659e1ee988a4b559afa1b54d85f3b9996b7..b089008c0575e64aaf6fc15baaca0c02951f0a82:/cluster.c diff --git a/cluster.c b/cluster.c index ca0b748..0b595e3 100644 --- a/cluster.c +++ b/cluster.c @@ -1,6 +1,6 @@ // L2TPNS Clustering Stuff -char const *cvs_id_cluster = "$Id: cluster.c,v 1.48 2005/12/05 12:47:12 bodea Exp $"; +char const *cvs_id_cluster = "$Id: cluster.c,v 1.50 2006/04/05 02:13:48 bodea Exp $"; #include #include @@ -1272,8 +1272,6 @@ static uint8_t *convert_session(struct oldsession *old) new.ip = old->ip; new.ip_pool_index = old->ip_pool_index; new.unique_id = old->unique_id; - new.nr = old->nr; - new.ns = old->ns; new.magic = old->magic; new.pin = old->pin; new.pout = old->pout; @@ -1657,7 +1655,11 @@ int processcluster(uint8_t *data, int size, in_addr_t addr) STAT(recv_forward); if (type == C_FORWARD_DAE) - processdae(p, s, &a, sizeof(a)); + { + struct in_addr local; + local.s_addr = config->bind_address ? config->bind_address : my_address; + processdae(p, s, &a, sizeof(a), &local); + } else processudp(p, s, &a);