matches RFC 3074. [ISC-Bugs #15980]
were tranmsitted to it, and what frames are being carried through it which
it should not intercept.
+- The Load Balance Algorithm was misimplemented. The current implementation
+ matches RFC 3074.
+
Changes since 3.0.4b2
- Null-termination sensing for certain clients that unfortunatley require
#ifndef lint
static char copyright[] =
-"$Id: failover.c,v 1.60 2006/04/27 17:26:42 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
+"$Id: failover.c,v 1.61 2006/05/04 21:14:21 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
hbaix = loadb_p_hash (packet -> raw -> chaddr,
packet -> raw -> hlen);
}
- hm = (state -> hba [hbaix / 8] & (1 << (hbaix & 3)));
+
+ hm = state->hba[(hbaix >> 3) & 0x1F] & (1 << (hbaix & 0x07));
+
if (state -> i_am == primary)
return hm;
else