/external/dnsmasq/src/ |
D | lease.c | 28 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 …]
|
D | helper.c | 298 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 …]
|
D | rfc2131.c | 125 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 …]
|
D | dbus.c | 393 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()
|
D | dnsmasq.h | 830 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 832 void lease_set_hostname(struct dhcp_lease *lease, char *name, int auth); 833 void lease_set_expires(struct dhcp_lease *lease, unsigned int len, time_t now); 834 void lease_set_interface(struct dhcp_lease *lease, int interface); 881 void emit_dbus_signal(int action, struct dhcp_lease *lease, char *hostname); 888 void queue_script(int action, struct dhcp_lease *lease,
|
/external/dhcpcd/ |
D | bind.c | 126 struct dhcp_lease *lease = &state->lease; in bind_interface() local 134 get_monotonic(&lease->boundtime); in bind_interface() 140 get_lease(lease, state->new); in bind_interface() 143 iface->name, inet_ntoa(lease->addr)); in bind_interface() 144 lease->leasetime = ~0U; in bind_interface() 145 lease->net.s_addr = ifo->req_mask.s_addr; in bind_interface() 149 iface->name, inet_ntoa(lease->addr)); in bind_interface() 150 lease->leasetime = ~0U; in bind_interface() 154 lease->addr.s_addr = ifo->req_addr.s_addr; in bind_interface() 156 lease->addr.s_addr = iface->addr.s_addr; in bind_interface() [all …]
|
D | showlease.c | 306 void showlease(struct dhcp_lease *lease) in showlease() argument 308 printf("addr: %s\n", inet_ntoa(lease->addr)); in showlease() 309 printf("net: %s\n", inet_ntoa(lease->net)); in showlease() 310 printf("leasetime: %d\n", lease->leasetime); in showlease() 311 printf("renew: %d\n", lease->renewaltime); in showlease() 312 printf("rebind: %d\n", lease->rebindtime); in showlease() 313 printf("server: %s\n", inet_ntoa(lease->server)); in showlease() 321 struct dhcp_lease *lease; in main() local 333 lease = malloc(sizeof(*lease)); in main() 334 lease->frominfo = 0; in main() [all …]
|
D | dhcp.c | 920 const struct dhcp_lease *lease = &iface->state->lease; in make_message() local 928 iface->net.s_addr == lease->net.s_addr && in make_message() 935 dhcp->ciaddr = lease->addr.s_addr; in make_message() 973 if (lease->addr.s_addr && lease->cookie == htonl(MAGIC_COOKIE)) { in make_message() 976 lease->addr.s_addr != iface->addr.s_addr)) in make_message() 978 PUTADDR(DHO_IPADDRESS, lease->addr); in make_message() 979 if (lease->server.s_addr) in make_message() 980 PUTADDR(DHO_SERVERID, lease->server); in make_message() 984 if (lease->server.s_addr) in make_message() 985 PUTADDR(DHO_SERVERID, lease->server); in make_message() [all …]
|
D | dhcpcd.c | 246 iface->state->lease.addr.s_addr = 0; in drop_dhcp() 355 to.s_addr = state->lease.server.s_addr; in send_message() 428 iface->state->lease.addr.s_addr = 0; in start_expire() 509 struct dhcp_lease *lease = &state->lease; in handle_dhcp() local 574 lease->frominfo = 0; in handle_dhcp() 575 lease->addr.s_addr = dhcp->yiaddr; in handle_dhcp() 576 lease->cookie = dhcp->cookie; in handle_dhcp() 578 get_option_addr(&lease->server, dhcp, DHO_SERVERID) != 0) in handle_dhcp() 579 lease->server.s_addr = INADDR_ANY; in handle_dhcp() 633 lease->frominfo = 0; in handle_dhcp() [all …]
|
D | configure.c | 778 struct dhcp_lease *lease = &iface->state->lease; in configure() local 798 !has_address(iface->name, &lease->addr, &lease->net)) in configure() 801 iface->name, inet_ntoa(lease->addr), in configure() 802 inet_ntocidr(lease->net)); in configure() 804 &lease->addr, &lease->net, &lease->brd) == -1 && in configure() 813 if (iface->addr.s_addr != lease->addr.s_addr && in configure() 817 iface->addr.s_addr = lease->addr.s_addr; in configure() 818 iface->net.s_addr = lease->net.s_addr; in configure() 835 if (!iface->state->lease.frominfo && in configure()
|
/external/dnsmasq/contrib/lease-access/ |
D | lease.access.patch | 216 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/dnsmasq/contrib/wrt/ |
D | README | 2 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
|
D | dhcp_lease_time.c | 136 struct in_addr lease; in main() local 155 lease.s_addr = inet_addr(argv[1]); in main() 163 packet.ciaddr = lease; in main()
|
D | dhcp_release.c | 250 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/dnsmasq/po/ |
D | id.po | 55 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 …]
|
D | pt_BR.po | 49 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 …]
|
D | fi.po | 49 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 …]
|
D | it.po | 49 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 …]
|
D | de.po | 55 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/dnsmasq/dbus/ |
D | DBus-interface | 101 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/ |
D | CHANGELOG.archive | 184 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 …]
|
D | CHANGELOG | 12 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 …]
|
D | dnsmasq.conf.example | 132 # 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/wpa_supplicant_8/wpa_supplicant/examples/ |
D | udhcpd-p2p.conf | 89 option lease 864000 # 10 days of seconds
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd.c | 1374 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 …]
|