Home | History | Annotate | Download | only in src

Lines Matching refs:option_find

95 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)))
176 if ((opt = option_find(mess, sz, OPTION_MAXMESSAGE, 2)))
194 if ((option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ) || mess_type == DHCPDISCOVER))
197 if ((opt = option_find(mess, sz, OPTION_AGENT_ID, 1)))
206 unsigned char *last_opt = option_find(mess, sz, OPTION_END, 0);
248 if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ)))
252 if ((opt = option_find(mess, sz, OPTION_CLIENT_ID, 1)))
499 if ((opt = option_find(mess, sz, OPTION_CLIENT_FQDN, 4)))
542 else if ((opt = option_find(mess, sz, OPTION_HOSTNAME, 1)))
609 if (!(opt = option_find(mess, sz, o->opt, 1)) ||
653 if ((opt = option_find(mess, sz, OPTION_USER_CLASS, 1)))
677 if ((opt = option_find(mess, sz, mopt, 1)))
691 match_vendor_opts(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->dhcp_opts);
695 if (sanitise(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->namebuff))
697 if (sanitise(option_find(mess, sz, OPTION_USER_CLASS, 1), daemon->namebuff))
712 (opt = option_find(mess, sz, OPTION_VENDOR_ID, 9)) &&
715 if ((opt = option_find(mess, sz, OPTION_PXE_UUID, 17)))
723 (opt = option_find(mess, sz, OPTION_VENDOR_CLASS_OPT, 1)) &&
777 if ((opt = option_find(mess, sz, OPTION_ARCH, 2)))
824 if ((opt = option_find(mess, sz, OPTION_REQUESTED_OPTIONS, 0)))
834 if (!(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) ||
839 sanitise(option_find(mess, sz, OPTION_MESSAGE, 1), daemon->dhcp_buff);
841 if (!(opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ)))
867 !(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) ||
892 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ)))
953 time = calc_time(context, config, option_find(mess, sz, OPTION_LEASE_TIME, 4));
972 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ)))
980 if ((opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)))
1145 if ((opt = option_find(mess, sz, OPTION_USER_CLASS, 1)))
1160 if ((opt = option_find(mess, sz, OPTION_VENDOR_ID, 1)))
1172 if ((opt = option_find(mess, sz, OPTION_HOSTNAME, 1)))
1198 time = calc_time(context, config, option_find(mess, sz, OPTION_LEASE_TIME, 4));
1473 static unsigned char *option_find(struct dhcp_packet *mess, size_t size, int opt_type, int minsize)