/external/dnsmasq/src/ |
lease.c | 28 struct dhcp_lease *lease; local 44 lease database. */ 66 die(_("cannot open or create lease file %s: %s"), daemon->lease_file, EC_FILE); 91 if (!(lease = lease_allocate(addr))) 96 lease->expires = (time_t)ei + now; 98 lease->expires = (time_t)0; 99 lease->length = ei; 103 lease->expires = (time_t)ei; 106 lease_set_hwaddr(lease, (unsigned char *)daemon->dhcp_buff2, (unsigned char *)daemon->packet, hw_len, hw_type, clid_len); 109 lease_set_hostname(lease, daemon->dhcp_buff, 0) 149 struct dhcp_lease *lease; local 175 struct dhcp_lease *lease; local 245 struct dhcp_lease *lease; local 266 struct dhcp_lease *lease, *tmp, **up; local 295 struct dhcp_lease *lease; local 316 struct dhcp_lease *lease; local 328 struct dhcp_lease *lease; local 518 struct dhcp_lease *lease; local 531 struct dhcp_lease *lease; local [all...] |
helper.c | 297 /* pack up lease data into a buffer */ 298 void queue_script(int action, struct dhcp_lease *lease, char *hostname, time_t now) 309 if (lease->vendorclass) 310 vclass_len = lease->vendorclass_len; 311 if (lease->userclass) 312 uclass_len = lease->userclass_len; 313 if (lease->supplied_hostname) 314 shost_len = lease->supplied_hostname_len; 315 if (lease->clid) 316 clid_len = lease->clid_len [all...] |
Android.mk | 6 LOCAL_SRC_FILES := bpf.c cache.c dbus.c dhcp.c dnsmasq.c forward.c helper.c lease.c log.c \
|
rfc2131.c | 125 struct dhcp_lease *ltmp, *lease = NULL; local 258 /* do we have a lease in store? */ 259 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); 263 if (lease && !clid && lease->clid) 265 clid_len = lease->clid_len; 266 clid = lease->clid; 286 use the ciaddr. This is necessary because a machine which got a lease via a 429 if ((lease = lease_find_by_addr(config->addr)) && 430 (lease->hwaddr_len != mess->hlen | [all...] |
config.h | 64 #define DEFLEASE 3600 /* default lease time, 1 hour */ 116 for timing, and keep lease lengths rather than expiry times 120 is in effect, the lease file is only written when a new lease is 123 it viable to keep the lease file on a flash filesystem. 134 define this to get the ability to call scripts on lease-change
|
/external/dhcpcd/ |
showlease.c | 302 void showlease(struct dhcp_lease *lease) 304 printf("addr: %s\n", inet_ntoa(lease->addr)); 305 printf("net: %s\n", inet_ntoa(lease->net)); 306 printf("leasetime: %d\n", lease->leasetime); 307 printf("renew: %d\n", lease->renewaltime); 308 printf("rebind: %d\n", lease->rebindtime); 309 printf("server: %s\n", inet_ntoa(lease->server)); 317 struct dhcp_lease *lease; local 326 fprintf(stderr, "Couldn't read lease file: %s\n", strerror(errno)); 329 lease = malloc(sizeof(*lease)) [all...] |
client.c | 134 struct dhcp_lease lease; member in struct:if_state 363 get_lease(struct dhcp_lease *lease, const struct dhcp_message *dhcp) 367 if (lease->frominfo) 369 lease->addr.s_addr = dhcp->yiaddr; 371 if (get_option_addr(&lease->net, dhcp, DHO_SUBNETMASK) == -1) 372 lease->net.s_addr = get_netmask(dhcp->yiaddr); 373 if (get_option_uint32(&lease->leasetime, dhcp, DHO_LEASETIME) == 0) { 374 /* Ensure that we can use the lease */ 376 if (t + (time_t)lease->leasetime < t) { 377 logger(LOG_WARNING, "lease of %u would overflow, 393 struct dhcp_lease *lease = &state->lease; local 465 struct dhcp_lease *lease = &state->lease; local 863 struct dhcp_lease *lease = &state->lease; local 907 struct dhcp_lease *lease = &state->lease; local 1015 struct dhcp_lease *lease = &state->lease; local 1130 struct dhcp_lease *lease = &state->lease; local 1381 struct dhcp_lease *lease = &state->lease; local [all...] |
dhcpcd-run-hooks.8.in | 79 dhcpcd obtained a new lease from a DHCP server. 81 dhcpcd renewed it's lease. 85 dhcpcd successfully requested a lease from a DHCP server. 87 dhcpcd's lease expired and it failed to obtain a new one. 91 dhcpcd failed to contact any DHCP servers or use an old lease. 93 dhcpcd failed to contact any DHCP servers but was able to use an old lease.
|
dhcpcd.8 | 80 then daemonises and waits for the lease renewal time to lapse. 81 Then it attempts to renew its lease and reconfigure if the new lease changes. 85 failed to obtain a lease, it probes for a valid IPv4LL address 169 to release its lease, deconfigure the 175 Request a specific lease time in 179 does not request any lease time and leaves the it in the hands of the 200 to rebind it's lease. 204 will timeout the rebind after 30 seconds at which point the lease will be 207 will enter the discovery state to obtain a new lease [all...] |
dhcpcd.8.in | 81 then daemonises and waits for the lease renewal time to lapse. 82 Then it attempts to renew its lease and reconfigure if the new lease changes. 86 failed to obtain a lease, it probes for a valid IPv4LL address 170 to release its lease, deconfigure the 176 Request a specific lease time in 180 does not request any lease time and leaves the it in the hands of the 201 to rebind it's lease. 205 will timeout the rebind after 30 seconds at which point the lease will be 208 will enter the discovery state to obtain a new lease [all...] |
dhcpcd-run-hooks.8 | 78 dhcpcd obtained a new lease from a DHCP server. 80 dhcpcd renewed it's lease. 84 dhcpcd successfully requested a lease from a DHCP server. 86 dhcpcd's lease expired and it failed to obtain a new one. 90 dhcpcd failed to contact any DHCP servers or use an old lease. 92 dhcpcd failed to contact any DHCP servers but was able to use an old lease.
|
/external/dnsmasq/contrib/wrt/ |
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 i [all...] |
lease_update.sh | 15 # if $1 is add del or old, this is a dnsmasq-called lease-change 17 # dnsmasq-format lease file to stdout representing the current state of the
|
dhcp_lease_time.c | 16 and print (to stdout) the time remaining in any lease for the given 19 If an error occurs or no lease exists for the given address, 136 struct in_addr lease; local 155 lease.s_addr = inet_addr(argv[1]); 163 packet.ciaddr = lease; 213 return 1; /* no lease */
|
dhcp_release.c | 17 to tell the local DHCP server to delete a particular lease. 31 for ethernet. This encoding is the one used in dnsmasq lease files. 250 struct in_addr server, lease; local 285 lease.s_addr = inet_addr(argv[2]); 286 server = find_interface(lease, nl, if_nametoindex(argv[1])); 297 packet.ciaddr = lease;
|
/external/dnsmasq/contrib/lease-access/ |
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 uid) 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, time_t now) 425 + if (!lease) { /* if host has not been seen before lease is NULL */ 427 + lease = &_lease [all...] |
README | 4 to a lease. For this reason I modified the dhcp-script behavior and is
|
/external/dnsmasq/contrib/dnslist/ |
dnslist.tt2 | 17 <th class="lease">Lease Expires</th> 27 <td class="lease">[% host.text_lease %]</td>
|
dhcp.css | 57 .lease { width: 10em; }
|
/system/core/libnetutils/ |
dhcp_utils.c | 69 uint32_t *lease) 114 *lease = atol(prop_value); 129 uint32_t *lease) 168 fill_ip_info(interface, ipaddr, gateway, mask, dns1, dns2, server, lease); 198 * Release the current DHCP client lease.
|
/cts/tests/tests/net/src/android/net/cts/ |
DhcpInfoTest.java | 46 + "dns2 0.0.0.0 DHCP server 0.0.0.0 lease 0 seconds"; 54 + STR_ADDR2 + " lease " + leaseTime + " seconds";
|
/external/dnsmasq/contrib/port-forward/ |
dnsmasq-portforward | 5 # A script which gets run when the dnsmasq DHCP lease database changes. 30 # If a lease gets stripped of a name, we see that as an "old" action
|
portforward | 15 # at the address allocated to wwwserver whenever wwwserver gets a DHCP lease.
|
/external/dnsmasq/bld/ |
Makefile | 4 dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \
|
/external/dnsmasq/contrib/Suse/ |
dnsmasq-SuSE.patch | 16 #define DEFLEASE 3600 /* default lease time, 1 hour */
|