Searched refs:dhcp (Results 1 - 25 of 30) sorted by relevance

12

/external/dhcpcd/dhcpcd-hooks/
H A D25-static-routes.conf1 # Set dhcp.<iface>.routeN.dest and dhcp.<iface>.routeN.via properties with
25 setprop dhcp.${interface}.route${next_set_interface}.dest $1
27 setprop dhcp.${interface}.route${next_set_interface}.via $1
36 while [[ ! -z "$(getprop dhcp.${interface}.route${next_clear_interface}.dest)" ]]; do
37 setprop dhcp.${interface}.route${next_clear_interface}.dest ""
38 setprop dhcp.${interface}.route${next_clear_interface}.via ""
41 while [[ ! -z "$(getprop dhcp.${interface}.route${next_clear_interface}.via)" ]]; do
42 setprop dhcp.${interface}.route${next_clear_interface}.dest ""
43 setprop dhcp
[all...]
H A D20-dns.conf19 setprop dhcp.${intf}.dns${i} ""
24 setprop dhcp.${intf}.dns${count} ${dnsaddr}
36 setprop dhcp.${interface}.domain "${new_domain_name}$separator${new_domain_search}"
42 setprop dhcp.${intf}.dns${i} ""
45 setprop dhcp.${interface}.domain ""
H A D50-ntp.conf16 : ${NTP_DHCP_CONF:=/var/lib/ntp/ntp.conf.dhcp}
/external/dhcpcd/
H A Dshowlease.c8 #include "dhcp.h"
131 struct dhcp_message *dhcp; local
137 dhcp = malloc(sizeof(*dhcp));
138 memset(dhcp, 0, sizeof(*dhcp));
139 bytes = read(fd, dhcp, sizeof(*dhcp));
142 free(dhcp);
143 dhcp
194 get_option(const struct dhcp_message *dhcp, uint8_t opt, int *len, int *type) argument
267 get_option_addr32(uint32_t *a, const struct dhcp_message *dhcp, uint8_t option) argument
278 get_option_uint32(uint32_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
322 struct dhcp_message *dhcp; local
[all...]
H A Ddhcp.c38 #include "dhcp.h"
303 #define get_option_raw(dhcp, opt) get_option(dhcp, opt, NULL, NULL)
305 get_option(const struct dhcp_message *dhcp, uint8_t opt, int *len, int *type) argument
307 const uint8_t *p = dhcp->options;
308 const uint8_t *e = p + sizeof(dhcp->options);
325 opt_buffer = xmalloc(sizeof(*dhcp));
346 p = dhcp->bootfile;
347 e = p + sizeof(dhcp->bootfile);
351 p = dhcp
384 get_option_addr(struct in_addr *a, const struct dhcp_message *dhcp, uint8_t option) argument
396 get_option_uint32(uint32_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
409 get_option_uint16(uint16_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
422 get_option_uint8(uint8_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
718 get_option_string(const struct dhcp_message *dhcp, uint8_t option) argument
782 get_option_routes(const struct dhcp_message *dhcp, const char *ifname, unsigned long long *opts) argument
882 dhcp_message_add_addr(struct dhcp_message *dhcp, uint8_t type, struct in_addr addr) argument
910 struct dhcp_message *dhcp; local
1119 write_lease(const struct interface *iface, const struct dhcp_message *dhcp) argument
1172 struct dhcp_message *dhcp; local
1382 configure_env(char **env, const char *prefix, const struct dhcp_message *dhcp, const struct if_options *ifo) argument
1470 get_lease(struct dhcp_lease *lease, const struct dhcp_message *dhcp) argument
[all...]
H A Dipv4ll.c47 struct dhcp_message *dhcp; local
50 dhcp = xzalloc(sizeof(*dhcp));
52 dhcp->yiaddr = addr;
53 p = dhcp->options;
66 return dhcp;
H A Ddhcpcd.c311 struct dhcp_message *dhcp; local
350 len = make_message(&dhcp, iface, type);
353 from.s_addr = dhcp->ciaddr;
359 r = send_packet(iface, to, (uint8_t *)dhcp, len);
365 len = make_udp_packet(&udp, (uint8_t *)dhcp, len, from, to);
382 free(dhcp);
443 const struct interface *iface, const struct dhcp_message *dhcp,
452 a = get_option_string(dhcp, DHO_MESSAGE);
453 else if (dhcp->yiaddr != 0) {
454 addr.s_addr = dhcp
442 log_dhcp(int lvl, const char *msg, const struct interface *iface, const struct dhcp_message *dhcp, const struct in_addr *from) argument
508 struct dhcp_message *dhcp = *dhcpp; local
665 struct dhcp_message *dhcp = NULL; local
1042 struct dhcp_message *dhcp; local
[all...]
H A DAndroid.mk9 LOCAL_SRC_FILES := arp.c bind.c common.c control.c dhcp.c dhcpcd.c duid.c \
60 LOCAL_SRC_FILES := dhcpcd_test.cpp dhcp.c common.c
H A Dconfigure.c46 #include "dhcp.h"
172 int dhcp, ra; local
174 dhcp = ra = 0;
178 dhcp = 1;
224 if ((dhcp && iface->state->new) || (ra && iface->ras)) {
253 if (dhcp && iface->state->old) {
265 if (dhcp && iface->state->new) {
537 get_subnet_route(struct dhcp_message *dhcp) argument
543 addr = dhcp->yiaddr;
545 addr = dhcp
777 struct dhcp_message *dhcp = iface->state->new; local
[all...]
H A Ddhcpcd_test.cpp29 // dhcp.h. This header file is not easily included, since subsequent
36 /* Max MTU - defines dhcp option length */
69 char * get_option_string(const struct dhcp_message *dhcp, uint8_t option);
H A Dnet.c67 #include "dhcp.h"
675 struct dhcp_message dhcp; member in struct:udp_dhcp_packet
723 memcpy(&udpp->dhcp, data, length);
755 *data = udp + offsetof(struct udp_dhcp_packet, dhcp);
H A DMakefile4 SRCS= arp.c bind.c common.c control.c dhcp.c dhcpcd.c duid.c eloop.c
/external/iproute2/etc/iproute2/
H A Drt_protos17 16 dhcp
/external/iproute2/examples/
H A Ddhcp-client-script297 # The script mangles it, only if it has dhcp magic signature.
309 echo $idstring > /etc/resolv.conf.dhcp
311 echo search $new_domain_name >> /etc/resolv.conf.dhcp
313 echo options ndots:1 >> /etc/resolv.conf.dhcp
317 echo nameserver $nameserver >> /etc/resolv.conf.dhcp
320 echo nameserver 127.0.0.1 >> /etc/resolv.conf.dhcp
332 mv /etc/resolv.conf.dhcp /etc/resolv.conf
345 ifconfig $interface:dhcp down
348 ifconfig $interface:dhcp 10.10.10.10 netmask 255.255.255.255
349 ifconfig $interface:dhcp dow
[all...]
/external/dnsmasq/src/
H A DAndroid.mk6 LOCAL_SRC_FILES := bpf.c cache.c dbus.c dhcp.c dnsmasq.c forward.c helper.c lease.c log.c \
H A Ddnsmasq.c126 if (daemon->dhcp)
163 if (daemon->dhcp)
216 if (daemon->dhcp && daemon->lease_change_command && daemon->scriptuser)
369 if (daemon->dhcp && daemon->lease_change_command)
391 CAP_NET_RAW (for icmp) if we're doing dhcp */
505 if (daemon->dhcp)
509 for (dhcp_tmp = daemon->dhcp; dhcp_tmp; dhcp_tmp = dhcp_tmp->next)
612 if (daemon->dhcp)
700 if (daemon->dhcp && FD_ISSET(daemon->dhcpfd, &rset))
831 if (daemon->dhcp)
[all...]
H A Ddhcp.c234 for (context = daemon->dhcp; context; context = context->next)
373 for (context = daemon->dhcp; context; context = context->next)
465 address. Note that none may fit, if the address came a dhcp-host and is outside
466 any dhcp-range. In that case we return a static range if possible, or failing that,
567 supernetting. ie dhcp-range=192.168.0.1,192.168.1.254,255,255,254.0
897 die(_("duplicate IP address %s in dhcp-config directive."),
918 in at most one dhcp-host. Since /etc/hosts can be re-read by SIGHUP,
948 my_syslog(MS_DHCP | LOG_WARNING, _("duplicate IP address %s (%s) in dhcp-config directive"),
/external/dnsmasq/contrib/port-forward/
H A Ddnsmasq-portforward12 # dhcp-script=/usr/sbin/dnsmasq-portforward
19 LOGFILE=/var/log/dhcp.log
/external/dnsmasq/bld/
H A DMakefile4 dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \
/external/sepolicy/
H A Dproperty_contexts26 dhcp. u:object_r:dhcp_prop:s0
27 dhcp.bt-pan.result u:object_r:pan_result_prop:s0
H A Dfile_contexts239 /data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
/external/toybox/toys/pending/
H A Ddhcp.c0 /* dhcp.c - DHCP client for dynamic network configuration.
7 USE_DHCP(NEWTOY(dhcp, "V:H:F:x*r:O*A#<0T#<0t#<0s:p:i:SBRCaovqnbf", TOYFLAG_SBIN|TOYFLAG_ROOTONLY))
10 bool "dhcp"
13 usage: dhcp [-fbnqvoCRB] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]
20 -s Run PROG at DHCP events (default /usr/share/dhcp/default.script)
174 dhcp_msg_t dhcp; member in struct:dhcp_raw_s
265 // calculates checksum for dhcp messages.
389 // String to dhcp option conversion
536 char *script = flag_get(FLAG_s, TT.script, "/usr/share/dhcp/default.script");
694 memcpy(&state->pdhcp, &packet.dhcp, byte
[all...]
H A Ddhcpd.c107 dhcp_msg_t dhcp; member in struct:dhcp_raw_s
223 // calculates checksum for dhcp messeges.
387 // String to dhcp option conversion
653 memcpy(&packet.dhcp, &gstate.send_pkt, sizeof(dhcp_msg_t));
722 // Preapres a dhcp packet with defaults and configs
737 // Sets a option value in dhcp packet's option field
749 // Gets a option value from dhcp packet's option field
794 // Retrives Requested Parameter list from dhcp req packet.
807 // Sets values of req param in dhcp offer packet.
/external/toybox/generated/
H A Dglobals.h416 // toys/pending/dhcp.c
1226 struct dhcp_data dhcp; member in union:global_union
H A Dnewtoys.h43 USE_DHCP(NEWTOY(dhcp, "V:H:F:x*r:O*A#<0T#<0t#<0s:p:i:SBRCaovqnbf", TOYFLAG_SBIN|TOYFLAG_ROOTONLY))

Completed in 572 milliseconds

12