From: fendo Date: Fri, 2 Aug 2013 11:36:42 +0000 (+0200) Subject: Fix: improved load balancing algorithm X-Git-Tag: 2.2.1-2sames3.12~2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/3b6cfeb9a24f60d0cbfd83456124142594f3414a Fix: improved load balancing algorithm --- diff --git a/grpsess.c b/grpsess.c index f38ab1a..a4b63ab 100644 --- a/grpsess.c +++ b/grpsess.c @@ -571,7 +571,7 @@ sessionidt grp_getnextsession(groupidt g, in_addr_t ip, in_addr_t ip_src) uint8_t *ad = (uint8_t *) &ip; uint16_t ai = ad[3]; ai <<= 8; - ai &= as[3]; + ai |= as[3]; s = grp_local[g].sid_loaddist[ai]; if (!s)