/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_lease.c | 157 smb_lease_t *lease; in smb2_lease_create() local 185 for (lease = smb_llist_head(bucket); lease != NULL; in smb2_lease_create() 186 lease = smb_llist_next(bucket, lease)) { in smb2_lease_create() 191 if (bcmp(lease->ls_key, key, UUID_LEN) == 0 && in smb2_lease_create() 192 bcmp(lease->ls_clnt, clnt, UUID_LEN) == 0 && in smb2_lease_create() 193 (lease->ls_node->flags & NODE_FLAGS_DELETING) == 0 && in smb2_lease_create() 194 smb2_lease_hold(lease)) in smb2_lease_create() 198 if (lease == NULL) { in smb2_lease_create() 199 lease = newlease; in smb2_lease_create() 200 smb_llist_insert_head(bucket, lease); in smb2_lease_create() [all …]
|
H A D | smb_srv_oplock.c | 502 smb_lease_t *lease = ofile->f_lease; in smb_oplock_hdl_closed() local 504 if (lease != NULL) { in smb_oplock_hdl_closed() 505 if (lease->ls_oplock_ofile == ofile) { in smb_oplock_hdl_closed() 511 lease->ls_oplock_ofile = NULL; in smb_oplock_hdl_closed() 542 smb_lease_t *lease = ofile->f_lease; in smb_oplock_hdl_update() local 555 if (lease != NULL) { in smb_oplock_hdl_update() 557 if (lease->ls_breakto == lease->ls_state) in smb_oplock_hdl_update() 558 lease->ls_epoch++; in smb_oplock_hdl_update() 560 lease->ls_breakto = NewLevel; in smb_oplock_hdl_update() 561 lease->ls_breaking = B_TRUE; in smb_oplock_hdl_update() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/testoplock/ |
H A D | case14.txt | 2 # simulate smbtorture smb2.lease.v2_rename 4 # Create (open_if, lease=e0dd(1), RWH, epoch=0x4711 ) 16 # Create, open_if, lease=e0dd(1), RWH, epoch=0x4712 22 # Create, open_if, lease=feed(2), RWH, epoch=0x0044 28 # Lease Break Notify, lease=e0dd(1), RWH to RH, epoch=0x4713 29 # Lease Break Ack, lease=e0dd, RH 34 # Create-resp, fid=9 lease=feed(2), state=RH, epoch=0x0045 46 # Lease Break Notify, lease=feed(2), RH to R, epoch=0x0046 47 # Lease Break Ack, lease=feed(2), state=R
|
H A D | case12.txt | 2 # simulate smbtorture smb2.lease.breaking3 8 # a conflicting open (no oplock) is blocked until lease break ack 13 # should see lease break RWH to RH, and brk-open would block. 22 # ack the first lease break above (RWH to RH) 26 # ack the second lease break (RH to R)
|
H A D | case13.txt | 2 # simulate smbtorture smb2.lease.complex1 8 # upgrade lease 1
|
H A D | case06.txt | 2 # Modeled after smbtorture smb2.lease.nobreakself 16 # ind_break will "move" the lease to h2 (1:R 2:R)
|
H A D | case07.txt | 2 # Modeled after smbtorture smb2.lease.upgrade
|
H A D | case09.txt | 2 # Modeled after smbtorture smb2.lease.oplock
|
H A D | case11.txt | 2 # Modeled after smbtorture smb2.lease.break2
|
H A D | case10.txt | 2 # Modeled after smbtorture smb2.lease.oplock
|
H A D | case08.txt | 2 # Modeled after smbtorture smb2.lease.upgrade3
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | bound.c | 455 get_pkt_times(PKT_LIST *ack, lease_t *lease, lease_t *t1, lease_t *t2) in get_pkt_times() argument 457 *lease = DHCP_PERM; in get_pkt_times() 475 (void) memcpy(lease, ack->opts[CD_LEASE_TIME]->value, sizeof (lease_t)); in get_pkt_times() 476 *lease = ntohl(*lease); in get_pkt_times() 478 if (*lease == DHCP_PERM) { in get_pkt_times() 495 if ((*t1 == DHCP_PERM) || (*t1 >= *lease)) in get_pkt_times() 496 *t1 = (lease_t)fuzzify(*lease, DHCP_T1_FACT); in get_pkt_times() 498 if ((*t2 == DHCP_PERM) || (*t2 > *lease) || (*t2 <= *t1)) in get_pkt_times() 499 *t2 = (lease_t)fuzzify(*lease, DHCP_T2_FACT); in get_pkt_times() 502 *lease, *t1, *t2); in get_pkt_times() [all …]
|
H A D | README.v6 | 99 Each ifslist entry contains the address, mask, lease information, 157 means that, unlike IPv4 DHCP, DHCPv6 does not need to obtain a lease 170 specified by the user. The lease has a "Lease Time," a required 206 renew/rebind and lease expiry strategy is used, although the state 223 the lease. 258 Next, the lease-tracking needs to be refactored. DHCPv6 is the 264 have only one lease per DHCPv6 state machine, because each state 281 For DHCPv6, we need to track multiple LIFs per lease (IA), but we 284 one PIF and is a member of at most one lease, and then simplify: the 285 lease structure will use a base pointer for the first LIF in the [all …]
|
H A D | README | 123 lease expiration timer, time-to-first-renewal (t1) timer, and so 180 As an example, consider the process of extending a lease: the agent 207 instance, acquiring a lease requires several steps: sending a 213 (perhaps even requests on the IPC channel to begin acquiring a lease 224 begins trying to renew a lease. This is done by sending a REQUEST 227 the lease as well, then if the agent were to send another REQUEST, 266 the lease before it expires. Note that user-initiated actions always 337 lease acquisition. Since the IP_DHCPINIT_IF socket option can only 352 represents infinity (i.e., a permanent lease). The lease_t should be 361 DHCP lease times. [all …]
|
H A D | dhcpagent.dfl | 54 # does not answer (and the lease has not yet expired), then the client 59 # to continue to use the managed address, in case the lease has changed. 67 # the previous lease, but if unable to do so, it will not attempt to 68 # use that lease. This behavior is often preferred for roaming systems.
|
H A D | request.c | 154 lease_t lease; in dhcp_requesting() local 296 (void) memcpy(&lease, offer->opts[CD_LEASE_TIME]->value, in dhcp_requesting() 299 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, lease); in dhcp_requesting()
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_sol_dev.c | 2257 vmm_lease_t *lease; in vmm_drv_lease_sign() local 2265 lease = kmem_alloc(sizeof (*lease), KM_SLEEP); in vmm_drv_lease_sign() 2266 list_link_init(&lease->vml_node); in vmm_drv_lease_sign() 2267 lease->vml_expire_func = expiref; in vmm_drv_lease_sign() 2268 lease->vml_expire_arg = arg; in vmm_drv_lease_sign() 2269 lease->vml_expired = B_FALSE; in vmm_drv_lease_sign() 2270 lease->vml_break_deferred = B_FALSE; in vmm_drv_lease_sign() 2271 lease->vml_hold = hold; in vmm_drv_lease_sign() 2273 lease->vml_vm = sc->vmm_vm; in vmm_drv_lease_sign() 2274 lease->vml_vmclient = vmspace_client_alloc(vm_get_vmspace(sc->vmm_vm)); in vmm_drv_lease_sign() [all …]
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_hostconf.c | 102 uint32_t lease; in read_hostconf() local 274 (void) memcpy(&lease, in read_hostconf() 278 lease = ntohl(lease); in read_hostconf() 279 if ((lease != DHCP_PERM) && in read_hostconf() 280 (orig_time + lease) <= current_time) in read_hostconf()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_client_debug.c | 438 time_t lease; in find_beginning() local 442 lease = 2 * mi->mi_lease_period; in find_beginning() 444 lease = DEFAULT_LEASE; in find_beginning() 449 first_msg->msg_time.tv_sec - cur_msg->msg_time.tv_sec < lease) { in find_beginning() 588 int lease, len; in facts_same() local 592 lease = 2 * mi->mi_lease_period; in facts_same() 594 lease = DEFAULT_LEASE; in facts_same() 599 new_msg->msg_time.tv_sec - cur_msg->msg_time.tv_sec < lease) { in facts_same()
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | dhcpv4.c | 656 uint32_t lease; in dhcp_selecting() local 674 *opt++ = sizeof (lease); in dhcp_selecting() 675 lease = htonl(DHCP_PERM); /* ask for a permanent lease */ in dhcp_selecting() 676 bcopy(&lease, opt, sizeof (lease)); in dhcp_selecting() 677 opt += sizeof (lease); in dhcp_selecting()
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/ |
H A D | DNSCommon.h | 241 extern mDNSu8 *putUpdateLease(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease); 242 extern mDNSu8 *putUpdateLeaseWithLimit(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease, mDNSu8 *limit); 272 …ktLease(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end, mDNSu32 *const lease);
|
H A D | uDNS.h | 180 …nst mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort extport, mDNSu32 lease, NATTProtocol prot…
|
H A D | uDNS.c | 795 …InterfaceID, mDNSu16 err, mDNSv4Addr extaddr, mDNSIPPort extport, mDNSu32 lease, NATTProtocol prot… in natTraversalHandlePortMapReplyWithAddress() argument 800 if (err || lease == 0 || mDNSIPPortIsZero(extport)) in natTraversalHandlePortMapReplyWithAddress() 803 n, prot, mDNSVal16(n->IntPort), &extaddr, mDNSVal16(extport), lease, err); in natTraversalHandlePortMapReplyWithAddress() 812 if (lease > 999999999UL / mDNSPlatformOneSecond) in natTraversalHandlePortMapReplyWithAddress() 813 lease = 999999999UL / mDNSPlatformOneSecond; in natTraversalHandlePortMapReplyWithAddress() 814 n->ExpiryTime = NonZeroTime(m->timenow + lease * mDNSPlatformOneSecond); in natTraversalHandlePortMapReplyWithAddress() 825 &extaddr, mDNSVal16(extport), lease); in natTraversalHandlePortMapReplyWithAddress() 838 …nst mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort extport, mDNSu32 lease, NATTProtocol prot… in natTraversalHandlePortMapReply() argument 840 …natTraversalHandlePortMapReplyWithAddress(m, n, InterfaceID, err, m->ExtAddress, extport, lease, p… in natTraversalHandlePortMapReply() 1109 mDNSs32 lease = (mDNSs32)llq->llqlease * mDNSPlatformOneSecond; in SetLLQTimer() local [all …]
|
H A D | DNSCommon.c | 2390 mDNSexport mDNSu8 *putUpdateLease(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease) in putUpdateLease() argument 2398 rr.resrec.rdata->u.opt[0].u.updatelease = lease; in putUpdateLease() 2405 mDNSexport mDNSu8 *putUpdateLeaseWithLimit(DNSMessage *msg, mDNSu8 *ptr, mDNSu32 lease, mDNSu8 *lim… in putUpdateLeaseWithLimit() argument 2413 rr.resrec.rdata->u.opt[0].u.updatelease = lease; in putUpdateLeaseWithLimit() 3342 …PktLease(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end, mDNSu32 *const lease) in GetPktLease() argument 3355 *lease = o->u.updatelease; in GetPktLease()
|
/illumos-gate/usr/src/test/smbsrv-tests/doc/ |
H A D | README | 111 /opt/smbsrv-tests/tests/smbtorture/runst-smb2 smb2.lease
|