Lines Matching refs:option_len

81 #define option_len(opt) ((int)(((unsigned char *)(opt))[1]))  macro
205 unsigned int total = option_len(opt) + 2; in dhcp_reply()
215 …if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SUBNET_SELEC… in dhcp_reply()
219 …if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SERVER_OR, I… in dhcp_reply()
236 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), search, 1)) && in dhcp_reply()
237 vendor->len == option_len(sopt) && in dhcp_reply()
254 clid_len = option_len(opt); in dhcp_reply()
502 int len = option_len(opt); in dhcp_reply()
544 int len = option_len(opt); in dhcp_reply()
610 o->len > option_len(opt)) in dhcp_reply()
621 for (i = 0; i <= (option_len(opt) - o->len); ) in dhcp_reply()
657 for (j = 0; j < option_len(opt); j += ucp[j] + 1); in dhcp_reply()
658 if (j == option_len(opt)) in dhcp_reply()
659 for (j = 0; j < option_len(opt); j = tmp) in dhcp_reply()
680 for (i = 0; i <= (option_len(opt) - vendor->len); i++) in dhcp_reply()
724 …(opt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_PXE_BOOT_ITEM, 4)… in dhcp_reply()
827 memcpy(req_options, option_ptr(opt, 0), option_len(opt)); in dhcp_reply()
828 req_options[option_len(opt)] = OPTION_END; in dhcp_reply()
1147 int len = option_len(opt); in dhcp_reply()
1162 int len = option_len(opt); in dhcp_reply()
1174 int len = option_len(opt); in dhcp_reply()
1375 for (i = option_len(opt); i > 0; i--) in sanitise()
1422 unsigned char trunc = option_len(start); in log_options()
1439 ntohl(xid), option_len(start), start[0], in log_options()
1443 trunc == option_len(start) ? "" : "..."); in log_options()
1463 opt_len = option_len(p); in option_find1()
1783 for (i = 0; i <= (option_len(opt) - len); i++) in match_vendor_opts()