Home | History | Annotate | Download | only in src

Lines Matching refs:option_ptr

82 #define option_ptr(opt, i) ((void *)&(((unsigned char *)(opt))[2u+(unsigned int)(i)]))
215 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SUBNET_SELECT, INADDRSZ)))
219 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SERVER_OR, INADDRSZ)))
236 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), search, 1)) &&
238 memcmp(option_ptr(sopt, 0), vendor->data, vendor->len) == 0)
255 clid = option_ptr(opt, 0);
504 unsigned char *pp, *op = option_ptr(opt, 0);
545 memcpy(daemon->dhcp_buff, option_ptr(opt, 0), len);
617 if (memcmp_masked(o->val, option_ptr(opt, 0), o->len, o->u.wildcard_mask))
623 if (memcmp(o->val, option_ptr(opt, i), o->len) == 0)
655 unsigned char *ucp = option_ptr(opt, 0);
681 if (memcmp(vendor->data, option_ptr(opt, i), vendor->len) == 0)
713 strncmp(option_ptr(opt, 0), "PXEClient", 9) == 0)
717 memcpy(pxe_uuid, option_ptr(opt, 0), 17);
724 (opt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_PXE_BOOT_ITEM, 4)))
741 memcpy(save71, option_ptr(opt, 0), 4);
827 memcpy(req_options, option_ptr(opt, 0), option_len(opt));
844 log_packet("DHCPDECLINE", option_ptr(opt, 0), emac, emac_len, iface_name, daemon->dhcp_buff, mess->xid);
940 log_packet("DHCPDISCOVER", opt ? option_ptr(opt, 0) : NULL, emac, emac_len, iface_name, message, mess->xid);
1148 unsigned char *ucp = option_ptr(opt, 0);
1163 unsigned char *ucp = option_ptr(opt, 0);
1175 unsigned char *ucp = option_ptr(opt, 0);
1373 p = option_ptr(opt, 0);
1435 print_mac(daemon->namebuff, option_ptr(start, 0), trunc);
1504 memcpy(&ret, option_ptr(opt, offset), INADDRSZ);
1519 unsigned char *p = option_ptr(opt, offset);
1784 if (len == 0 || memcmp(dopt->u.vendor_class, option_ptr(opt, i), len) == 0)