HomeSort by relevance Sort by last modified time
    Searched refs:lease (Results 1 - 25 of 48) sorted by null

1 2

  /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...]
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...]
Android.mk 6 LOCAL_SRC_FILES := bpf.c cache.c dbus.c dhcp.c dnsmasq.c forward.c helper.c lease.c log.c \
dbus.c 393 void emit_dbus_signal(int action, struct dhcp_lease *lease, char *hostname)
408 p = extended_hwaddr(lease->hwaddr_type, lease->hwaddr_len,
409 lease->hwaddr, lease->clid_len, lease->clid, &i);
421 addr = inet_ntoa(lease->addr);
  /external/dhcpcd/
bind.c 54 /* We do things after aquiring the lease, so ensure we have enough time for them */
126 struct dhcp_lease *lease = &state->lease; local
134 get_monotonic(&lease->boundtime);
140 get_lease(lease, state->new);
143 iface->name, inet_ntoa(lease->addr));
144 lease->leasetime = ~0U;
145 lease->net.s_addr = ifo->req_mask.s_addr;
149 iface->name, inet_ntoa(lease->addr));
150 lease->leasetime = ~0U
    [all...]
showlease.c 306 void showlease(struct dhcp_lease *lease)
308 printf("addr: %s\n", inet_ntoa(lease->addr));
309 printf("net: %s\n", inet_ntoa(lease->net));
310 printf("leasetime: %d\n", lease->leasetime);
311 printf("renew: %d\n", lease->renewaltime);
312 printf("rebind: %d\n", lease->rebindtime);
313 printf("server: %s\n", inet_ntoa(lease->server));
321 struct dhcp_lease *lease; local
330 fprintf(stderr, "Couldn't read lease file: %s\n", strerror(errno));
333 lease = malloc(sizeof(*lease))
    [all...]
configure.c 180 /* When dumping the lease, we only want to report interface and
778 struct dhcp_lease *lease = &iface->state->lease; local
798 !has_address(iface->name, &lease->addr, &lease->net))
801 iface->name, inet_ntoa(lease->addr),
802 inet_ntocidr(lease->net));
804 &lease->addr, &lease->net, &lease->brd) == -1 &
    [all...]
dhcp.c 916 const struct dhcp_lease *lease = &iface->state->lease; local
924 iface->net.s_addr == lease->net.s_addr &&
931 dhcp->ciaddr = lease->addr.s_addr;
969 if (lease->addr.s_addr && lease->cookie == htonl(MAGIC_COOKIE)) {
972 lease->addr.s_addr != iface->addr.s_addr))
974 PUTADDR(DHO_IPADDRESS, lease->addr);
975 if (lease->server.s_addr)
976 PUTADDR(DHO_SERVERID, lease->server)
    [all...]
dhcpcd.c 246 iface->state->lease.addr.s_addr = 0;
343 * Also, we should not unicast from a BOOTP lease. */
355 to.s_addr = state->lease.server.s_addr;
428 iface->state->lease.addr.s_addr = 0;
433 syslog(LOG_ERR, "%s: lease expired", iface->name);
509 struct dhcp_lease *lease = &state->lease; local
574 lease->frominfo = 0;
575 lease->addr.s_addr = dhcp->yiaddr;
576 lease->cookie = dhcp->cookie
    [all...]
dhcpcd.h 71 struct dhcp_lease lease; member in struct:if_state
ipv4ll.c 118 iface->state->lease.frominfo = 0;
  /external/wpa_supplicant_8/wpa_supplicant/examples/
udhcpd-p2p.conf 3 # The start and end of the IP lease block
21 # remaining for each lease in the udhcpd leases file. This is
23 # If you set remaining to no, the absolute time that the lease
31 # lease file. (specified in seconds)
52 # If a lease to be given is below this value, the full lease time is
66 # Useful for writing the lease file to flash every few hours.
83 # lines. The only option with a default is 'lease'.
89 option lease 864000 # 10 days of seconds
110 #opt lease
    [all...]
  /system/core/include/netutils/
dhcp.h 32 uint32_t *lease,
42 uint32_t *lease,
  /hardware/libhardware_legacy/include/hardware_legacy/
wifi.h 121 * @param lease return the length of lease in seconds.
126 int *dns1, int *dns2, int *server, int *lease);
  /system/core/libnetutils/
dhcp_utils.c 93 uint32_t *lease,
151 *lease = atol(prop_value);
192 uint32_t *lease,
247 server, lease, vendorInfo, domain, mtu) == -1) {
292 * Release the current DHCP client lease.
336 uint32_t *lease,
376 server, lease, vendorInfo, domain, mtu);
dhcpclient.c 111 uint32_t lease; member in struct:dhcp_info
118 uint32_t *lease)
126 *lease = last_good_info.lease;
161 ALOGD("server %s, lease %d seconds",
162 ipaddr(info->serveraddr), info->lease);
215 memcpy(&info->lease, x, 4);
216 info->lease = ntohl(info->lease);
  /external/dnsmasq/contrib/wrt/
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;
  /frameworks/base/core/jni/
android_net_NetUtils.cpp 38 uint32_t *lease,
49 uint32_t *lease,
128 uint32_t lease; local
138 dns, server, &lease, vendorInfo, domains, mtu);
141 dns, server, &lease, vendorInfo, domains, mtu);
198 // dhcpResults->setLeaseDuration(lease)
200 dhcpResultsFieldIds.setLeaseDuration, lease);
  /external/dnsmasq/bld/
Makefile 4 dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \
  /external/mdnsresponder/mDNSShared/
dnsextd.h 61 // lease table entry
100 mDNSu32 lease; // original lease, in seconds member in struct:LLQEntry
138 // lease table variables (locked via mutex after initialization)
140 pthread_mutex_t tablelock; // mutex for lease table
dnsextd.c 79 // LLQ Lease bounds (seconds)
410 // storage for a Lease OPT RR
801 // Lease Hashtable Utility Routines
811 VLog("Rehashing lease table (new size %d buckets)", newnbuckets);
845 Log("Dumping Lease Table Contents (table contains %d resource records)", d->nelems);
933 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
938 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
940 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
942 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
947 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) )
1516 mDNSs32 lease = 0; local
    [all...]
  /external/mdnsresponder/mDNSCore/
uDNS.h 126 extern void natTraversalHandlePortMapReply(mDNS *const m, NATTraversalInfo *n, const mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort extport, mDNSu32 lease);
  /external/chromium_org/net/dns/
dns_session.cc 232 SocketLease* lease = new SocketLease(this, server_index, socket.Pass()); local
233 return scoped_ptr<SocketLease>(lease);

Completed in 410 milliseconds

1 2