Home
last modified time | relevance | path

Searched refs:leasetime (Results 1 – 8 of 8) sorted by relevance

/external/dhcpcd/
Dbind.c144 lease->leasetime = ~0U; in bind_interface()
150 lease->leasetime = ~0U; in bind_interface()
159 lease->leasetime = ~0U; in bind_interface()
166 if (lease->leasetime == ~0U) { in bind_interface()
169 lease->leasetime; in bind_interface()
173 if (lease->leasetime < DHCP_MIN_LEASE) { in bind_interface()
177 lease->leasetime = DHCP_MIN_LEASE; in bind_interface()
180 lease->rebindtime = lease->leasetime * T2; in bind_interface()
181 else if (lease->rebindtime >= lease->leasetime) { in bind_interface()
182 lease->rebindtime = lease->leasetime * T2; in bind_interface()
[all …]
Dshowlease.c312 printf("leasetime: %d\n", lease->leasetime); in showlease()
341 if (get_option_uint32(&lease->leasetime, dhcp, DHO_LEASETIME) != 0) in main()
342 lease->leasetime = DEFAULT_LEASETIME; in main()
346 if ((lease->leasetime != ~0U) && (lease->leasetime > MAX_LEASETIME)) in main()
347 lease->leasetime = MAX_LEASETIME; in main()
Dif-options.h91 uint32_t leasetime; member
Ddhcp.c1035 if (ifo->leasetime != 0) { in make_message()
1038 ul = htonl(ifo->leasetime); in make_message()
1484 if (get_option_uint32(&lease->leasetime, dhcp, DHO_LEASETIME) == 0) { in get_lease()
1487 if (now.tv_sec + (time_t)lease->leasetime < now.tv_sec) in get_lease()
1488 lease->leasetime = ~0U; /* Infinite lease */ in get_lease()
1490 lease->leasetime = ~0U; /* Default to infinite lease */ in get_lease()
Ddhcp.h162 uint32_t leasetime; member
Ddhcpcd.c1224 } else if (iface->state->lease.leasetime != ~0U && in start_interface()
1229 if ((time_t)iface->state->lease.leasetime < in start_interface()
1240 iface->state->lease.leasetime -= l; in start_interface()
Dif-options.c402 ifo->leasetime = (uint32_t)strtol(arg, NULL, 0); in parse_option()
/external/dhcpcd/dhcpcd-hooks/
D95-configured20 setprop dhcp.${intf}.leasetime "${new_dhcp_lease_time}"