/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_hostconf.c | 104 uint32_t lease; local 269 * make sure the IPv4 DHCP lease is still valid. 276 (void) memcpy(&lease, 280 lease = ntohl(lease); 281 if ((lease != DHCP_PERM) && 282 (orig_time + lease) <= current_time) 315 * time_t: a starting time to treat the relative lease times 346 * read_hostconf() to recalculate the lease times for the first packet.
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | bound.c | 83 * contained in the ACK/Reply packet and sets up lease timers. 122 * if we're adopting a lease, the lease timers 125 * have a lease time of at most DHCP_ADOPT_LEASE_MAX. 184 "dhcp_bound: no address lease established"); 266 dhcpmsg(MSG_DEBUG, "dhcp_bound: lease not updated; " 343 * state machine goes away or when our lease expires. 428 * input: uint32_t: the number of seconds until lease expiration 440 * get_pkt_times(): pulls the lease times out of a v4 DHCP packet and stores 445 * lease_t *: where to store the relative lease tim 452 get_pkt_times(PKT_LIST *ack, lease_t *lease, lease_t *t1, lease_t *t2) argument 513 lease_t lease, t1, t2; local [all...] |
H A D | request.c | 153 lease_t lease; local 287 * Grab the lease out of the OFFER; we know it's valid because 293 (void) memcpy(&lease, offer->opts[CD_LEASE_TIME]->value, 296 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, lease); 470 dhcpmsg(MSG_WARNING, "compute_points_v4: OFFER without lease " 477 "lease time"); 595 * must be for the same address and must have a new lease 617 "%s missing mandatory lease option, ignored",
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | uDNS.h | 145 extern void natTraversalHandlePortMapReply(mDNS *const m, NATTraversalInfo *n, const mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort extport, mDNSu32 lease, NATTProtocol protocol);
|
H A D | DNSCommon.h | 223 extern mDNSu8 *putUpdateLease(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease); 224 extern mDNSu8 *putUpdateLeaseWithLimit(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease, mDNSu8 *limit);
|
H A D | uDNS.c | 772 mDNSlocal void natTraversalHandlePortMapReplyWithAddress(mDNS *const m, NATTraversalInfo *n, const mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSv4Addr extaddr, mDNSIPPort extport, mDNSu32 lease, NATTProtocol protocol) argument 777 if (err || lease == 0 || mDNSIPPortIsZero(extport)) 779 LogInfo("natTraversalHandlePortMapReplyWithAddress: %p Response %s Port %5d External %.4a:%d lease %d error %d", 780 n, prot, mDNSVal16(n->IntPort), &extaddr, mDNSVal16(extport), lease, err); 789 if (lease > 999999999UL / mDNSPlatformOneSecond) 790 lease = 999999999UL / mDNSPlatformOneSecond; 791 n->ExpiryTime = NonZeroTime(m->timenow + lease * mDNSPlatformOneSecond); 794 LogInfo("natTraversalHandlePortMapReplyWithAddress: %p %s Response %s Port %5d External %.4a:%d changed to %.4a:%d lease %d", 802 &extaddr, mDNSVal16(extport), lease); 815 mDNSexport void natTraversalHandlePortMapReply(mDNS *const m, NATTraversalInfo *n, const mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort extport, mDNSu32 lease, NATTProtoco argument 1089 mDNSs32 lease = (mDNSs32)llq->llqlease * mDNSPlatformOneSecond; local 4045 mDNSu32 lease = GetPktLease(m, msg, end); local [all...] |
H A D | DNSCommon.c | 2607 mDNSexport mDNSu8 *putUpdateLease(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease) argument 2615 rr.resrec.rdata->u.opt[0].u.updatelease = lease; 2622 mDNSexport mDNSu8 *putUpdateLeaseWithLimit(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease, mDNSu8 *limit) argument 2630 rr.resrec.rdata->u.opt[0].u.updatelease = lease; 3613 // Get the lease life of records in a dynamic update 3614 // returns 0 on error or if no lease present
|
H A D | mDNSEmbeddedAPI.h | 953 // LLQ rdata 18 bytes (opt 2, len 2, vers 2, op 2, err 2, id 8, lease 4) 954 // Lease rdata 8 bytes (opt 2, len 2, lease 4) 1090 #define NATMAP_DEFAULT_LEASE (60 * 60 * 2) // 2 hour lease life in seconds 1565 mDNSBool uselease; // dynamic update contains (should contain) lease option 1566 mDNSs32 expire; // In platform time units: expiration of lease (-1 for static) 3309 extern void GrantCacheExtensions(mDNS *const m, DNSQuestion *q, mDNSu32 lease);
|
H A D | mDNS.c | 3996 // uDNS LongLived questions, because that would mess up our LLQ lease renewal timing. 8021 mDNSexport void GrantCacheExtensions(mDNS *const m, DNSQuestion *q, mDNSu32 lease) argument 8029 //LogInfo("GrantCacheExtensions: new lease %d / %s", lease, CRDisplayString(m, rr)); 8030 RefreshCacheRecord(m, rr, lease); 10022 !updatelease ? " No lease" : "", !owner.HMAC.l[0] ? " No owner" : ""); 10131 mDNSu32 updatelease = 60 * 60; // If SPS fails to indicate lease time, assume one hour 10146 LogSPS("Sleep Proxy granted lease time %4d seconds, updateid %d, InterfaceID %p", updatelease, mDNSVal16(msg->h.id), InterfaceID);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_client_debug.c | 438 time_t lease; local 442 lease = 2 * mi->mi_lease_period; 444 lease = DEFAULT_LEASE; 449 first_msg->msg_time.tv_sec - cur_msg->msg_time.tv_sec < lease) { 581 * (only checks for a match within the last 2 lease periods). 588 int lease, len; local 592 lease = 2 * mi->mi_lease_period; 594 lease = DEFAULT_LEASE; 599 new_msg->msg_time.tv_sec - cur_msg->msg_time.tv_sec < lease) { 849 mount_pt ? " \n Client's lease expire [all...] |
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | dhcpv4.c | 433 * Longest lease, all the options we need. 436 * DHCP OFFER, no class_id, short lease, only some of the options we need. 506 dprintf("%s: DHCP OFFER message without lease " 656 uint32_t lease; local 674 *opt++ = sizeof (lease); 675 lease = htonl(DHCP_PERM); /* ask for a permanent lease */ 676 bcopy(&lease, opt, sizeof (lease)); 677 opt += sizeof (lease); [all...] |