Searched defs:dhcp (Results 1 - 7 of 7) sorted by relevance

/external/dhcpcd/
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 Dshowlease.c6 #include "dhcp.h"
129 struct dhcp_message *dhcp; local
135 dhcp = malloc(sizeof(*dhcp));
136 memset(dhcp, 0, sizeof(*dhcp));
137 bytes = read(fd, dhcp, sizeof(*dhcp));
140 free(dhcp);
141 dhcp
192 get_option(const struct dhcp_message *dhcp, uint8_t opt, int *len, int *type) argument
265 get_option_addr32(uint32_t *a, const struct dhcp_message *dhcp, uint8_t option) argument
276 get_option_uint32(uint32_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
320 struct dhcp_message *dhcp; local
[all...]
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 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 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);
321 opt_buffer = xmalloc(sizeof(*dhcp));
342 p = dhcp->bootfile;
343 e = p + sizeof(dhcp->bootfile);
347 p = dhcp
380 get_option_addr(struct in_addr *a, const struct dhcp_message *dhcp, uint8_t option) argument
392 get_option_uint32(uint32_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
405 get_option_uint16(uint16_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
418 get_option_uint8(uint8_t *i, const struct dhcp_message *dhcp, uint8_t option) argument
714 get_option_string(const struct dhcp_message *dhcp, uint8_t option) argument
778 get_option_routes(const struct dhcp_message *dhcp, const char *ifname, unsigned long long *opts) argument
878 dhcp_message_add_addr(struct dhcp_message *dhcp, uint8_t type, struct in_addr addr) argument
906 struct dhcp_message *dhcp; local
1115 write_lease(const struct interface *iface, const struct dhcp_message *dhcp) argument
1168 struct dhcp_message *dhcp; local
1374 configure_env(char **env, const char *prefix, const struct dhcp_message *dhcp, const struct if_options *ifo) argument
1464 get_lease(struct dhcp_lease *lease, const struct dhcp_message *dhcp) argument
[all...]
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...]
/external/dnsmasq/src/
H A Ddnsmasq.h466 #define CONFIG_BANK 2048 /* from dhcp hosts file */
628 struct dhcp_context *dhcp; member in struct:daemon
793 /* dhcp.c */

Completed in 85 milliseconds