Lines Matching refs:clientid
780 if (state->clientid) { in make_message()
782 memcpy(p, state->clientid, (size_t)state->clientid[0] + 1); in make_message()
783 p += state->clientid[0] + 1; in make_message()
3431 free(state->clientid); in dhcp_free()
3465 char buf[(sizeof(ifo->clientid) - 1) * 3]; in dhcp_init()
3493 free(state->clientid); in dhcp_init()
3494 state->clientid = NULL; in dhcp_init()
3496 if (*ifo->clientid) { in dhcp_init()
3497 state->clientid = malloc((size_t)(ifo->clientid[0] + 1)); in dhcp_init()
3498 if (state->clientid == NULL) in dhcp_init()
3500 memcpy(state->clientid, ifo->clientid, in dhcp_init()
3501 (size_t)(ifo->clientid[0]) + 1); in dhcp_init()
3504 state->clientid = malloc(ifp->ctx->duid_len + 6); in dhcp_init()
3505 if (state->clientid == NULL) in dhcp_init()
3507 state->clientid[0] =(uint8_t)(ifp->ctx->duid_len + 5); in dhcp_init()
3508 state->clientid[1] = 255; /* RFC 4361 */ in dhcp_init()
3509 memcpy(state->clientid + 2, ifo->iaid, 4); in dhcp_init()
3510 memcpy(state->clientid + 6, ifp->ctx->duid, in dhcp_init()
3514 state->clientid = malloc((size_t)len + 1); in dhcp_init()
3515 if (state->clientid == NULL) in dhcp_init()
3517 state->clientid[0] = len; in dhcp_init()
3518 state->clientid[1] = (uint8_t)ifp->family; in dhcp_init()
3519 memcpy(state->clientid + 2, ifp->hwaddr, in dhcp_init()
3531 hwaddr_ntoa(state->clientid + 1, state->clientid[0], in dhcp_init()
3606 if (ifp->hwlen == 0 && ifo->clientid[0] == '\0') { in dhcp_start1()