Home | History | Annotate | Download | only in src

Lines Matching refs:clid

154     if ((config = find_config(daemon->dhcp_conf, NULL, lease->clid, lease->clid_len, 
205 if (lease->clid && lease->clid_len != 0)
208 ourprintf(&err, "%.2x:", lease->clid[i]);
209 ourprintf(&err, "%.2x\n", lease->clid[i]);
293 unsigned char *clid, int clid_len)
297 if (clid)
299 if (lease->clid && clid_len == lease->clid_len &&
300 memcmp(clid, lease->clid, clid_len) == 0)
304 if ((!lease->clid || !clid) &&
378 unsigned char *clid, int hw_len, int hw_type, int clid_len)
390 /* only update clid when one is available, stops packets
391 without a clid removing the record. Lease init uses
392 clid_len == 0 for no clid. */
393 if (clid_len != 0 && clid)
395 if (!lease->clid)
401 free(lease->clid);
402 if (!(lease->clid = whine_malloc(clid_len)))
405 else if (memcmp(lease->clid, clid, clid_len) != 0)
409 memcpy(lease->clid, clid, clid_len);
566 free(lease->clid);