Lines Matching defs:lease
811 VLog("Rehashing lease table (new size %d buckets)", newnbuckets);
933 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
938 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
940 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
942 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
947 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
949 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
957 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
959 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
961 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
965 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
967 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
975 require_action( ptr, exit, Log("UpdateSRV: Error constructing lease expiration update" ) );
1333 if (!ptr) { Log("DeleteOneRecord: Error constructing lease expiration update"); }
1374 mDNSlocal void UpdateLeaseTable(PktMsg *pkt, DaemonInfo *d, mDNSs32 lease)
1429 else if (lease > 0)
1437 (*rptr)->expire = tv.tv_sec + (unsigned)lease;
1438 VLog("Refreshing lease for %s", GetRRDisplayString_rdb(&lcr.r.resrec, &lcr.r.resrec.rdata->u, buf));
1458 tmp->expire = tv.tv_sec + (unsigned)lease;
1464 VLog("Adding update for %s to lease table", GetRRDisplayString_rdb(&lcr.r.resrec, &lcr.r.resrec.rdata->u, buf));
1474 // Given a successful reply from a server, create a new reply that contains lease information
1476 mDNSlocal PktMsg *FormatLeaseReply(DaemonInfo *d, PktMsg *orig, mDNSu32 lease)
1493 ptr = putUpdateLease(&reply->msg, ptr, lease);
1516 mDNSs32 lease = 0;
1522 lease = GetPktLease(&mDNSStorage, &request->msg, end);
1531 if (adds && !lease)
1534 Log("Rejecting Update Request with %d additions but no lease", adds);
1543 if (lease > 7200) // Don't allow lease greater than two hours; typically 90-minute renewal period
1544 lease = 7200;
1591 UpdateLeaseTable( request, self, lease );
1593 if ( lease > 0 )
1595 leaseReply = FormatLeaseReply( self, reply, lease );
1599 Log("HandleRequest - unable to format lease reply");
1645 mDNSlocal void FormatLLQOpt(AuthRecord *opt, int opcode, const mDNSOpaque64 *const id, mDNSs32 lease)
1657 opt->resrec.rdata->u.opt[0].u.llq.llqlease = lease;
1660 // Calculate effective remaining lease of an LLQ
1970 Log("LLQ from %s in state %s; %##s; type %d; orig lease %d; remaining lease %d; AnswerList %p)",
1971 addr, state, e->qname.c, e->qtype, e->lease, LLQLease(e), e->AnswerList);
2083 mDNSlocal LLQEntry *NewLLQ(DaemonInfo *d, struct sockaddr_in cli, domainname *qname, mDNSu16 qtype, mDNSu32 lease )
2104 if (lease < LLQ_MIN_LEASE) lease = LLQ_MIN_LEASE;
2105 else if (lease > LLQ_MAX_LEASE) lease = LLQ_MAX_LEASE;
2108 e->expire = t.tv_sec + (int)lease;
2109 e->lease = lease;
2170 llq->llqlease > e->lease + LLQ_LEASE_FUDGE ||
2171 llq->llqlease < e->lease - LLQ_LEASE_FUDGE)