Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching full:clientid

780 	if (state->clientid) {
782 memcpy(p, state->clientid, (size_t)state->clientid[0] + 1);
783 p += state->clientid[0] + 1;
3431 free(state->clientid);
3465 char buf[(sizeof(ifo->clientid) - 1) * 3];
3493 free(state->clientid);
3494 state->clientid = NULL;
3496 if (*ifo->clientid) {
3497 state->clientid = malloc((size_t)(ifo->clientid[0] + 1));
3498 if (state->clientid == NULL)
3500 memcpy(state->clientid, ifo->clientid,
3501 (size_t)(ifo->clientid[0]) + 1);
3504 state->clientid = malloc(ifp->ctx->duid_len + 6);
3505 if (state->clientid == NULL)
3507 state->clientid[0] =(uint8_t)(ifp->ctx->duid_len + 5);
3508 state->clientid[1] = 255; /* RFC 4361 */
3509 memcpy(state->clientid + 2, ifo->iaid, 4);
3510 memcpy(state->clientid + 6, ifp->ctx->duid,
3514 state->clientid = malloc((size_t)len + 1);
3515 if (state->clientid == NULL)
3517 state->clientid[0] = len;
3518 state->clientid[1] = (uint8_t)ifp->family;
3519 memcpy(state->clientid + 2, ifp->hwaddr,
3530 logger(ifp->ctx, LOG_DEBUG, "%s: using ClientID %s", ifp->name,
3531 hwaddr_ntoa(state->clientid + 1, state->clientid[0],
3539 logger(ifp->ctx, LOG_ERR, "%s: error making ClientID: %m", __func__);
3606 if (ifp->hwlen == 0 && ifo->clientid[0] == '\0') {
3608 "%s: needs a clientid to configure", ifp->name);