Home
last modified time | relevance | path

Searched refs:lease (Results 1 – 25 of 111) sorted by relevance

12345

/external/dnsmasq/src/
Dlease.c27 struct dhcp_lease* lease; in lease_init() local
84 if (!(lease = lease_allocate(addr))) die(_("too many stored leases"), NULL, EC_MISC); in lease_init()
88 lease->expires = (time_t) ei + now; in lease_init()
90 lease->expires = (time_t) 0; in lease_init()
91 lease->length = ei; in lease_init()
95 lease->expires = (time_t) ei; in lease_init()
98 lease_set_hwaddr(lease, (unsigned char*) daemon->dhcp_buff2, in lease_init()
102 lease_set_hostname(lease, daemon->dhcp_buff, 0); in lease_init()
106 lease->new = lease->changed = 0; in lease_init()
140 struct dhcp_lease* lease; in lease_update_from_configs() local
[all …]
Dhelper.c257 void queue_script(int action, struct dhcp_lease* lease, char* hostname, time_t now) { in queue_script() argument
266 if (lease->vendorclass) vclass_len = lease->vendorclass_len; in queue_script()
267 if (lease->userclass) uclass_len = lease->userclass_len; in queue_script()
268 if (lease->supplied_hostname) shost_len = lease->supplied_hostname_len; in queue_script()
269 if (lease->clid) clid_len = lease->clid_len; in queue_script()
288 buf->hwaddr_len = lease->hwaddr_len; in queue_script()
289 buf->hwaddr_type = lease->hwaddr_type; in queue_script()
295 buf->addr = lease->addr; in queue_script()
296 buf->giaddr = lease->giaddr; in queue_script()
297 memcpy(buf->hwaddr, lease->hwaddr, lease->hwaddr_len); in queue_script()
[all …]
Drfc2131.c120 struct dhcp_lease *ltmp, *lease = NULL; in dhcp_reply() local
246 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); in dhcp_reply()
250 if (lease && !clid && lease->clid) { in dhcp_reply()
251 clid_len = lease->clid_len; in dhcp_reply()
252 clid = lease->clid; in dhcp_reply()
393 if ((lease = lease_find_by_addr(config->addr)) && in dhcp_reply()
394 (lease->hwaddr_len != mess->hlen || lease->hwaddr_type != mess->htype || in dhcp_reply()
395 memcmp(lease->hwaddr, mess->chaddr, lease->hwaddr_len) != 0)) in dhcp_reply()
398 … if (!(lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, NULL, 0)) || in dhcp_reply()
399 !address_available(context, lease->addr, netid)) { in dhcp_reply()
[all …]
Ddnsmasq.h775 void lease_set_hwaddr(struct dhcp_lease* lease, unsigned char* hwaddr, unsigned char* clid,
777 void lease_set_hostname(struct dhcp_lease* lease, char* name, int auth);
778 void lease_set_expires(struct dhcp_lease* lease, unsigned int len, time_t now);
779 void lease_set_interface(struct dhcp_lease* lease, int interface);
818 void queue_script(int action, struct dhcp_lease* lease, char* hostname, time_t now);
/external/igt-gpu-tools/tests/
Dkms_lease.c153 static int prepare_crtc(lease_t *lease, uint32_t connector_id, uint32_t crtc_id) in prepare_crtc() argument
156 igt_display_t *display = &lease->display; in prepare_crtc()
170 igt_create_color_fb(lease->fd, mode->hdisplay, mode->vdisplay, in prepare_crtc()
174 &lease->primary_fb); in prepare_crtc()
177 igt_plane_set_fb(primary, &lease->primary_fb); in prepare_crtc()
184 igt_wait_for_vblank(lease->fd, pipe); in prepare_crtc()
186 lease->output = output; in prepare_crtc()
187 lease->mode = mode; in prepare_crtc()
191 static void cleanup_crtc(lease_t *lease, igt_output_t *output) in cleanup_crtc() argument
193 igt_display_t *display = &lease->display; in cleanup_crtc()
[all …]
/external/openthread/src/cli/
DREADME_SRP_SERVER.md15 - [lease](#lease)
36 lease
128 ### lease subsection
130 Usage: `srp server lease [<min-lease>] [<max-lease>] [<min-key-lease>] [<max-key-lease>]`
135 > srp server lease
136 min lease: 1800
137 max lease: 7200
138 min key-lease: 86400
139 max key-lease: 1209600
146 > srp server lease 1800 7200 86400 1209600
DREADME_SRP_CLIENT.md220 - `ToRefresh`: item to be refreshed (renew lease).
233 - `removekeylease` is an optional boolean value indicating whether or not the host key lease should…
256 Get the key lease interval (in seconds).
265 Set the key lease interval.
276 Get the lease interval (in seconds).
285 Set the lease interval.
/external/ltp/testcases/network/dhcp/
Ddhcpd_tests.sh18 [ "$TST_IPV6" ] && lease="$lease_dir/dhcpd6.leases_tst"
52 default-lease-time 60;
53 max-lease-time 60;
67 default-lease-time 60;
68 max-lease-time 60;
/external/autotest/frontend/client/src/autotest/moblab/rpc/
DConnectedDutInfo.java40 for (String lease : leases.keySet()) { in fromJson()
41 JSONObject leaseObject = leases.get(lease).isObject(); in fromJson()
42 connectedIpsToMacAddresses.put(lease, in fromJson()
44 connectedIpsToSshConnection.put(lease, in fromJson()
/external/autotest/client/site_tests/network_DhcpStaticIP/
Dcontrol13 Tests that we can negotiate a lease on an IPv4 address via DHCP,
16 This test succceeds if dhcpcd is able to negotiate and DHCP lease, but then
17 apply static IP parameters and release the lease after acquiring DNS and
19 negotiation although a lease is negotiated, it is released back to the DHCP
/external/perfetto/src/traced/probes/ftrace/test/data/android_raven_AOSP.MASTER_5.10.43/events/filelock/leases_conflict/
Dformat9 field:void * lease; offset:8; size:8; signed:0;
17 print fmt: "conflict %d: lease=%p fl_flags=%s fl_type=%s; breaker=%p fl_flags=%s fl_type=%s", REC->…
/external/libcups/test/
D4.4-subscription-ops.test28 ATTR integer notify-lease-duration 5
43 # Delay test for 7 seconds to allow lease to expire...
83 ATTR integer notify-lease-duration 5
88 ATTR integer notify-lease-duration 5
145 ATTR integer notify-lease-duration 5
/external/autotest/client/site_tests/network_DhcpNegotiationSuccess/
Dcontrol13 Tests that we can negotiate a lease on an IPv4 address via DHCP. This test
14 will fail if dhcpcd is unable to negotiate and renew a DHCP lease without any
/external/autotest/client/site_tests/network_DhcpNonAsciiParameter/
Dcontrol13 Tests that we can negotiate a lease on an IPv4 address via DHCP.
15 This test fails if dhcpcd is unable to negotiate and renew a DHCP lease if
/external/autotest/client/site_tests/network_DhcpWpadNegotiation/
Dcontrol13 Tests that we can negotiate a lease on an IPv4 address via DHCP from a server
15 is unable to negotiate a DHCP lease, or if shill fails to report the WPAD
/external/toybox/toys/pending/
Ddumpleases.c29 struct lease { struct
40 struct lease lease_struct; in dumpleases_main() argument
/external/dnsmasq/
DCHANGELOG.archive184 DHCP lease derived names.
217 release 1.4 Fix a bug with DHPC lease parsing which broke in
390 names. Previously the TTL was derived from the lease
391 time but that is incorrect since a lease can be given
504 Fixed spurious re-reading of empty lease files. (Thanks
559 Made lease-file reader bullet-proof.
714 Fix lease time spec when specified in dhcp-range and not
748 Return DHCP T1 and T2 times, with "fuzz" to desychronise lease
761 Cope with a machine taking a DHCP lease and then moving
762 network so that the lease address is no longer valid.
[all …]
DCHANGELOG12 Add two more environment variables for lease-change scripts:
27 Make the code to call scripts on lease-change compile-time
90 Fix regression in 2.48 which disables the lease-change
166 Updated config.h to use the same location for the lease
272 lease-change script. This may be useful information to
294 Emit DBus signals as the DHCP lease database
299 abandon a DHCP lease of the fixed address to one MAC
305 at a time is up, since dnsmasq abandons the first lease
342 lease, problem introduced in version 2.43. Thanks to
345 Fix potential crash when a host which doesn't have a lease
[all …]
Ddnsmasq.conf.example132 # to supply the range of addresses available for lease and optionally
133 # a lease time. If you have more than one network, you will need to
163 # the name fred and IP address 192.168.0.60 and lease time 45 minutes
175 # 192.168.0.70 and an infinite lease
188 # it asks for a DHCP lease.
233 # Send options to hosts which ask for a DHCP lease.
309 # Send microsoft-specific option to tell windows to release the DHCP lease
413 #dhcp-lease-max=150
415 # The DHCP server needs somewhere on disk to keep its lease database.
421 # and take over the lease for any client which broadcasts on the network,
[all …]
/external/mdnsresponder/mDNSShared/
Ddnsextd.c1374 mDNSlocal void UpdateLeaseTable(PktMsg *pkt, DaemonInfo *d, mDNSs32 lease) in UpdateLeaseTable() argument
1429 else if (lease > 0) in UpdateLeaseTable()
1437 (*rptr)->expire = tv.tv_sec + (unsigned)lease; in UpdateLeaseTable()
1458 tmp->expire = tv.tv_sec + (unsigned)lease; in UpdateLeaseTable()
1476 mDNSlocal PktMsg *FormatLeaseReply(DaemonInfo *d, PktMsg *orig, mDNSu32 lease) in FormatLeaseReply() argument
1493 ptr = putUpdateLease(&reply->msg, ptr, lease); in FormatLeaseReply()
1516 mDNSs32 lease = 0; in HandleRequest() local
1522 lease = GetPktLease(&mDNSStorage, &request->msg, end); in HandleRequest()
1531 if (adds && !lease) in HandleRequest()
1543 if (lease > 7200) // Don't allow lease greater than two hours; typically 90-minute renewal period in HandleRequest()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dudhcpd-p2p.conf89 option lease 864000 # 10 days of seconds
/external/libwebsockets/cmake/
DLwsCheckRequirements.cmake90 # given a lease on ${SR_AMOUNT} of a resource ${SR_NAME}, for at
109 # allow it to wait for up to 100s for the resource lease
/external/autotest/client/site_tests/network_DhcpClasslessStaticRoute/
Dcontrol13 Tests that we can negotiate a lease on an IPv4 address via DHCP.
/external/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-blob/
DCMakeLists.txt26 # When running in CI, wait for a lease on the resources
30 # sai-resource holds the lease on the resources until
/external/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-perf/
DCMakeLists.txt25 # When running in CI, wait for a lease on the resources
29 # sai-resource holds the lease on the resources until

12345