Lines Matching defs:peer
307 dhcp_failover_state_t *peer;
368 peer = lease -> pool -> failover_peer;
404 log_error ("%s: peer holds all free leases",
416 peer = lease -> pool -> failover_peer;
417 if (peer -> service_state == not_responding ||
418 peer -> service_state == service_startup) {
420 msgbuf, peer -> nrr);
424 peer = (dhcp_failover_state_t *)0;
427 if (peer && (peer -> service_state == cooperating) &&
428 !load_balance_mine (packet, peer)) {
430 log_debug ("%s: load balance to peer %s",
431 msgbuf, peer -> name);
434 log_debug ("%s: cancel load balance to peer %s - %s",
435 msgbuf, peer -> name, "no free leases");
473 dhcp_failover_state_t *peer;
569 peer = lease -> pool -> failover_peer;
570 if (peer -> service_state == not_responding ||
571 peer -> service_state == service_startup) {
573 msgbuf, peer -> nrr);
577 /* "load balance to peer" - is not done at all for request.
588 * allocation, not the LBA...we know the peer cannot
598 log_debug ("%s: lease owned by peer", msgbuf);
653 both we and the peer are in a position to offer it.
675 peer = (dhcp_failover_state_t *)0;
907 dhcp_failover_state_t *peer = lease -> pool -> failover_peer;
908 if (peer -> service_state == not_responding ||
909 peer -> service_state == service_startup) {
911 peer -> name, peer -> nrr);
917 to the peer. Not sure why this would happen, and
1040 dhcp_failover_state_t *peer =
1042 if (peer -> service_state == not_responding ||
1043 peer -> service_state == service_startup) {
1046 peer -> name, peer -> nrr);
1051 ignore the DHCPDECLINE if the peer has the lease.
2896 dhcp_failover_state_t *peer =
2906 if (lease_time > peer->mclt) {
2914 new_lease_time = peer->mclt;
2916 (lt->tsfp + peer->mclt))
2918 + peer->mclt;
3811 * - Update the failover peer if we're in failover
3831 - update failover peer
4200 /* Quick check to see if the peer has leases. */
4205 dhcp_failover_state_t *peer = pool->failover_peer;
4207 if (peer &&
4208 ((peer->i_am == primary && pool->backup_leases) ||
4209 (peer->i_am == secondary && pool->free_leases))) {
4453 * we think are expired may be extended by the peer, etc) that
4574 /* If we're rejecting it because the peer has
5003 can deduce that this means the peer is hogging all the
5014 * owned by a failover peer. */
5022 * the peer's leases. In partner-down
5024 * the peer's leases after STOS+MCLT.