Home
last modified time | relevance | path

Searched refs:option_find (Results 1 – 2 of 2) sorted by relevance

/external/dnsmasq/src/
Drfc2131.c95 static unsigned char *option_find(struct dhcp_packet *mess, size_t size, int opt_type, int minsize);
165 if ((opt = option_find(mess, sz, OPTION_MESSAGE_TYPE, 1))) in dhcp_reply()
176 if ((opt = option_find(mess, sz, OPTION_MAXMESSAGE, 2))) in dhcp_reply()
194 if ((option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ) || mess_type == DHCPDISCOVER)) in dhcp_reply()
197 if ((opt = option_find(mess, sz, OPTION_AGENT_ID, 1))) in dhcp_reply()
206 unsigned char *last_opt = option_find(mess, sz, OPTION_END, 0); in dhcp_reply()
248 if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ))) in dhcp_reply()
252 if ((opt = option_find(mess, sz, OPTION_CLIENT_ID, 1))) in dhcp_reply()
499 if ((opt = option_find(mess, sz, OPTION_CLIENT_FQDN, 4))) in dhcp_reply()
542 else if ((opt = option_find(mess, sz, OPTION_HOSTNAME, 1))) in dhcp_reply()
[all …]
/external/dnsmasq/contrib/wrt/
Ddhcp_lease_time.c96 static unsigned char *option_find(struct dhcp_packet *mess, size_t size, int opt_type, int minsize) in option_find() function
193 if ((p = option_find(&packet, (size_t)rc, OPTION_LEASE_TIME, 4))) in main()