• Home
  • Raw
  • Download

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))) 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()
609 if (!(opt = option_find(mess, sz, o->opt, 1)) || in dhcp_reply()
653 if ((opt = option_find(mess, sz, OPTION_USER_CLASS, 1))) in dhcp_reply()
677 if ((opt = option_find(mess, sz, mopt, 1))) in dhcp_reply()
691 match_vendor_opts(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->dhcp_opts); in dhcp_reply()
695 if (sanitise(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->namebuff)) in dhcp_reply()
697 if (sanitise(option_find(mess, sz, OPTION_USER_CLASS, 1), daemon->namebuff)) in dhcp_reply()
712 (opt = option_find(mess, sz, OPTION_VENDOR_ID, 9)) && in dhcp_reply()
715 if ((opt = option_find(mess, sz, OPTION_PXE_UUID, 17))) in dhcp_reply()
723 (opt = option_find(mess, sz, OPTION_VENDOR_CLASS_OPT, 1)) && in dhcp_reply()
777 if ((opt = option_find(mess, sz, OPTION_ARCH, 2))) in dhcp_reply()
824 if ((opt = option_find(mess, sz, OPTION_REQUESTED_OPTIONS, 0))) in dhcp_reply()
834 if (!(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply()
839 sanitise(option_find(mess, sz, OPTION_MESSAGE, 1), daemon->dhcp_buff); in dhcp_reply()
841 if (!(opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
867 !(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply()
892 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
953 time = calc_time(context, config, option_find(mess, sz, OPTION_LEASE_TIME, 4)); in dhcp_reply()
972 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
980 if ((opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ))) in dhcp_reply()
1145 if ((opt = option_find(mess, sz, OPTION_USER_CLASS, 1))) in dhcp_reply()
1160 if ((opt = option_find(mess, sz, OPTION_VENDOR_ID, 1))) in dhcp_reply()
1172 if ((opt = option_find(mess, sz, OPTION_HOSTNAME, 1))) in dhcp_reply()
1198 time = calc_time(context, config, option_find(mess, sz, OPTION_LEASE_TIME, 4)); in dhcp_reply()
1473 static unsigned char *option_find(struct dhcp_packet *mess, size_t size, int opt_type, int minsize) in option_find() function