Home
last modified time | relevance | path

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

1234

/external/dnsmasq/src/
Dlease.c28 struct dhcp_lease *lease; in lease_init() local
91 if (!(lease = lease_allocate(addr))) in lease_init()
96 lease->expires = (time_t)ei + now; in lease_init()
98 lease->expires = (time_t)0; in lease_init()
99 lease->length = ei; in lease_init()
103 lease->expires = (time_t)ei; in lease_init()
106 …lease_set_hwaddr(lease, (unsigned char *)daemon->dhcp_buff2, (unsigned char *)daemon->packet, hw_l… in lease_init()
109 lease_set_hostname(lease, daemon->dhcp_buff, 0); in lease_init()
113 lease->new = lease->changed = 0; in lease_init()
149 struct dhcp_lease *lease; in lease_update_from_configs() local
[all …]
Dhelper.c298 void queue_script(int action, struct dhcp_lease *lease, char *hostname, time_t now) in queue_script() argument
309 if (lease->vendorclass) in queue_script()
310 vclass_len = lease->vendorclass_len; in queue_script()
311 if (lease->userclass) in queue_script()
312 uclass_len = lease->userclass_len; in queue_script()
313 if (lease->supplied_hostname) in queue_script()
314 shost_len = lease->supplied_hostname_len; in queue_script()
315 if (lease->clid) in queue_script()
316 clid_len = lease->clid_len; in queue_script()
339 buf->hwaddr_len = lease->hwaddr_len; in queue_script()
[all …]
Drfc2131.c125 struct dhcp_lease *ltmp, *lease = NULL; in dhcp_reply() local
259 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); in dhcp_reply()
263 if (lease && !clid && lease->clid) in dhcp_reply()
265 clid_len = lease->clid_len; in dhcp_reply()
266 clid = lease->clid; in dhcp_reply()
429 if ((lease = lease_find_by_addr(config->addr)) && in dhcp_reply()
430 (lease->hwaddr_len != mess->hlen || in dhcp_reply()
431 lease->hwaddr_type != mess->htype || in dhcp_reply()
432 memcmp(lease->hwaddr, mess->chaddr, lease->hwaddr_len) != 0)) in dhcp_reply()
437 if (!(lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, NULL, 0)) || in dhcp_reply()
[all …]
Ddbus.c393 void emit_dbus_signal(int action, struct dhcp_lease *lease, char *hostname) in emit_dbus_signal() argument
408 p = extended_hwaddr(lease->hwaddr_type, lease->hwaddr_len, in emit_dbus_signal()
409 lease->hwaddr, lease->clid_len, lease->clid, &i); in emit_dbus_signal()
421 addr = inet_ntoa(lease->addr); in emit_dbus_signal()
Ddnsmasq.h831 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr,
833 void lease_set_hostname(struct dhcp_lease *lease, char *name, int auth);
834 void lease_set_expires(struct dhcp_lease *lease, unsigned int len, time_t now);
835 void lease_set_interface(struct dhcp_lease *lease, int interface);
882 void emit_dbus_signal(int action, struct dhcp_lease *lease, char *hostname);
889 void queue_script(int action, struct dhcp_lease *lease,
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch216 void queue_script(int action, struct dhcp_lease *lease,
362 /* pack up lease data into a buffer */
363 -void queue_script(int action, struct dhcp_lease *lease, char *hostname, time_t now)
364 +void queue_script(int action, struct dhcp_lease *lease, char *hostname, time_t now, unsigned int u…
374 buf->hwaddr_len = lease->hwaddr_len;
375 buf->hwaddr_type = lease->hwaddr_type;
415 +static int check_access_script( int piperead, struct dhcp_lease *lease, struct dhcp_packet *mess, …
425 + if (!lease) { /* if host has not been seen before lease is NULL */
427 + lease = &_lease;
428 + lease_set_hwaddr(lease, mess->chaddr, NULL, mess->hlen, mess->htype, 0);
[all …]
/external/dhcpcd-6.8.2/
Ddhcp.c725 const struct dhcp_lease *lease = &state->lease; in make_message() local
739 state->net.s_addr == lease->net.s_addr && in make_message()
746 dhcp->ciaddr = lease->addr.s_addr; in make_message()
786 if (lease->addr.s_addr && lease->cookie == htonl(MAGIC_COOKIE)) { in make_message()
789 lease->addr.s_addr != state->addr.s_addr)) in make_message()
791 PUTADDR(DHO_IPADDRESS, lease->addr); in make_message()
792 if (lease->server.s_addr) in make_message()
793 PUTADDR(DHO_SERVERID, lease->server); in make_message()
797 if (lease->server.s_addr) in make_message()
798 PUTADDR(DHO_SERVERID, lease->server); in make_message()
[all …]
Dipv4.c819 ipv4_addaddr(struct interface *ifp, const struct dhcp_lease *lease) in ipv4_addaddr() argument
832 if (ia->addr.s_addr != lease->addr.s_addr) in ipv4_addaddr()
843 ifp->name, inet_ntoa(lease->addr), in ipv4_addaddr()
844 inet_ntocidr(lease->net)); in ipv4_addaddr()
845 if (if_addaddress(ifp, &lease->addr, &lease->net, &lease->brd) == -1) { in ipv4_addaddr()
854 ia->addr = lease->addr; in ipv4_addaddr()
855 ia->net = lease->net; in ipv4_addaddr()
883 struct dhcp_lease *lease; in ipv4_finaliseaddr() local
885 lease = &state->lease; in ipv4_finaliseaddr()
888 if (state->addr.s_addr != lease->addr.s_addr && in ipv4_finaliseaddr()
[all …]
/external/dnsmasq/contrib/wrt/
DREADME2 etc. Persistent leases are good: if the lease database is lost on a
20 leasefile; responsibility for maintaining the lease database transfers
21 to the lease change script. At startup, in leasefile-ro mode,
29 So the lease change script, given "init" as argv[1] will
34 is done by the lease-change script which dnsmasq runs when a lease is
55 only when a lease is created or destroyed; without it, a write occurs
56 every time a lease is renewed.
59 to an appropriate number using dhcp-lease-max. On a new DD_WRT system,
60 there are about 10K bytes free in the NVRAM. Each lease record is
Ddhcp_lease_time.c136 struct in_addr lease; in main() local
155 lease.s_addr = inet_addr(argv[1]); in main()
163 packet.ciaddr = lease; in main()
Ddhcp_release.c250 struct in_addr server, lease; in main() local
285 lease.s_addr = inet_addr(argv[2]); in main()
286 server = find_interface(lease, nl, if_nametoindex(argv[1])); in main()
297 packet.ciaddr = lease; in main()
/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/dnsmasq/po/
Did.po55 msgid "not giving name %s to the DHCP lease of %s because the name exists in %s with address %s"
56 msgstr "tidak memberikan nama %s kepada lease DHCP %s karena nama telah ada dalam %sdengan alamat %…
173 msgid "Enable DHCP in the range given with lease duration."
174 msgstr "Bolehkan DHCP dalam jangkauan yang diberikan dengan durasi lease."
261 msgstr "Sebutkan lokasi untuk menyimpan lease DHCP (default %s)."
351 msgstr "Sebutkan domain yang digunakan dalam lease DHCP."
410 msgstr "Sebutkan jumlah maksimum lease DHCP (default %s)."
473 msgid "Script to run on DHCP lease creation and destruction."
494 msgstr "Sebutkan jumlah maksimum lease DHCP (default %s)."
529 msgstr "Sebutkan jumlah maksimum lease DHCP (default %s)."
[all …]
Dit.po49 msgid "not giving name %s to the DHCP lease of %s because the name exists in %s with address %s"
147 msgid "Enable DHCP in the range given with lease duration."
391 msgid "Script to run on DHCP lease creation and destruction."
478 msgid "Run lease-change script as this user."
589 msgid "recompile with HAVE_SCRIPT defined to enable lease-change scripts"
980 msgid "DHCP, static leases only on %.0s%s, lease time %s"
990 msgid "DHCP, IP range %s -- %s, lease time %s"
1148 #: lease.c:66
1150 msgid "cannot open or create lease file %s: %s"
1153 #: lease.c:92
[all …]
Dpt_BR.po49 msgid "not giving name %s to the DHCP lease of %s because the name exists in %s with address %s"
147 msgid "Enable DHCP in the range given with lease duration."
391 msgid "Script to run on DHCP lease creation and destruction."
478 msgid "Run lease-change script as this user."
589 msgid "recompile with HAVE_SCRIPT defined to enable lease-change scripts"
980 msgid "DHCP, static leases only on %.0s%s, lease time %s"
990 msgid "DHCP, IP range %s -- %s, lease time %s"
1148 #: lease.c:66
1150 msgid "cannot open or create lease file %s: %s"
1153 #: lease.c:92
[all …]
Dfi.po49 msgid "not giving name %s to the DHCP lease of %s because the name exists in %s with address %s"
147 msgid "Enable DHCP in the range given with lease duration."
391 msgid "Script to run on DHCP lease creation and destruction."
478 msgid "Run lease-change script as this user."
589 msgid "recompile with HAVE_SCRIPT defined to enable lease-change scripts"
980 msgid "DHCP, static leases only on %.0s%s, lease time %s"
990 msgid "DHCP, IP range %s -- %s, lease time %s"
1148 #: lease.c:66
1150 msgid "cannot open or create lease file %s: %s"
1153 #: lease.c:92
[all …]
Dde.po55 msgid "not giving name %s to the DHCP lease of %s because the name exists in %s with address %s"
183 msgid "Enable DHCP in the range given with lease duration."
427 msgid "Script to run on DHCP lease creation and destruction."
514 msgid "Run lease-change script as this user."
627 msgid "recompile with HAVE_SCRIPT defined to enable lease-change scripts"
1023 msgid "DHCP, static leases only on %.0s%s, lease time %s"
1033 msgid "DHCP, IP range %s -- %s, lease time %s"
1191 #: lease.c:66
1193 msgid "cannot open or create lease file %s: %s"
1196 #: lease.c:92
[all …]
/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/dbus/
DDBus-interface101 the DHCP lease database changes. Think of these signals as transactions on
120 This signal is emitted when a DHCP lease for a given IP address is created.
125 This signal is emitted when a DHCP lease for a given IP address is deleted.
130 This signal is emitted when a DHCP lease for a given IP address is updated.
/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 …]
/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 …]

1234