Lines Matching refs:msgLen

197 	size_t msgLen, tmplen, len = 0;  in packSrvReg()  local
213 msgLen = in packSrvReg()
227 if (!(m = calloc(msgLen, 1))) { in packSrvReg()
247 if ((err = slp_add_header(hp->locale, m, msgLen, SRVREG, 0, &len)) in packSrvReg()
256 if ((err = slp_add_sht(m, msgLen, lifetime, &len)) != SLP_OK) in packSrvReg()
263 if ((err = slp_add_string(m, msgLen, url, &len)) != SLP_OK) in packSrvReg()
281 if ((err = slp_add_string(m, msgLen, type, &len)) != SLP_OK) in packSrvReg()
283 if ((err = slp_add_string(m, msgLen, scope, &len)) != SLP_OK) in packSrvReg()
290 if ((err = slp_add_string(m, msgLen, attrs, &len)) != SLP_OK) in packSrvReg()
306 msgLen += (*msg)->msgiov[SLP_URL_AUTH].iov_len; in packSrvReg()
307 msgLen += (*msg)->msgiov[SLP_ATTR_AUTH].iov_len; in packSrvReg()
310 if (msgLen > SLP_MAX_MSGLEN) { in packSrvReg()
314 slp_set_length(m, msgLen); in packSrvReg()
406 size_t msgLen, tmplen, len = 0; in packSrvDereg() local
417 msgLen = in packSrvDereg()
424 if (!(m = calloc(msgLen, 1))) { in packSrvDereg()
443 hp->locale, m, msgLen, SRVDEREG, 0, &len)) != SLP_OK) in packSrvDereg()
447 if ((err = slp_add_string(m, msgLen, scopes, &len)) != SLP_OK) in packSrvDereg()
452 if ((err = slp_add_sht(m, msgLen, 0, &len)) != SLP_OK) in packSrvDereg()
459 if ((err = slp_add_string(m, msgLen, url, &len)) != SLP_OK) in packSrvDereg()
477 if ((err = slp_add_string(m, msgLen, attrs, &len)) != SLP_OK) in packSrvDereg()
484 msgLen += (*msg)->msgiov[SLP_URL_AUTH].iov_len; in packSrvDereg()
487 if (msgLen > SLP_MAX_MSGLEN) { in packSrvDereg()
491 slp_set_length(m, msgLen); in packSrvDereg()